Return-Path: Message-ID: Date: Tue, 8 Aug 2006 10:13:33 -0300 From: "Ulisses Furquim" To: "BlueZ development" In-Reply-To: MIME-Version: 1.0 References: <44D88EC1.7010009@pracucci.com> Subject: Re: [Bluez-devel] "File descriptor in bad state" on sdp_connect() 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, On 8/8/06, Peter Wippich wrote: > > I have a problem with multiple concurrent calls to sdp_connect(). In > > particular, I have a simple application that search a service on > > different remote devices: the searches are done concurrently (until 7 in > > parallel), each from within a different pthread. I have experienced > > that, with a lot of Bluetooth dongles (example Surecom, D-Link), it > > occurs an "File descriptor in bad state" error. Debugging the > > sdp_connect() function I have founded that the error occurs on connect() > > system call. > > > This problem has been discussed here several times for various > applications. It is not related to SDP but to the general problem that > (all ?) commercial available Bluetooth adaptors do not support multiple > (concurrent) connection requests. The only solution is to serialize the > connect requests. Until now nobody voluntered to do this in the kernel. I'm working on this right now. I think I've found the problems with that Marcel Holtmann's patch. I'm gonna test it a little bit more and then I'll send the patch to the list. :-) Regards, -- Ulisses ------------------------------------------------------------------------- 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