Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: References: <450603BA.3090302@vasmac.com> <1158050613.14015.1.camel@localhost> Date: Tue, 12 Sep 2006 12:29:51 +0200 Message-Id: <1158056991.14015.25.camel@localhost> Mime-Version: 1.0 Subject: Re: [Bluez-devel] socket connect returns EAGAIN Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi Peter, > > > see my last post on this subject about 4 days ago. From my understanding > > > they shall return EINPROGRESS when the connection to the remote device is > > > pending. Returning EAGAIN looks like a small bug. See also man 2 connect > > > or man 7 socket. > > > > this has been raised a long time ago. However the Bluetooth core inside > > the kernel doesn't sets the wrong error. It is one of the network > > functions we use. > > Are you sure ?!? > > I think the problem is in bt_sock_wait_state(...). This always returns > -EAGAIN if timeout is zero (which it is if the socket is set non > blocking). But may be I'm missing something. not 100% sure, but last time I tracked this down. Feel free to propose a patch that changes the behavior and brings it in sync with the manual page. Regards Marcel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel