|
Re: L2CAP: One failing connection hurts others?: msg#00050linux.bluez.devel
Hi Marcel! Marcel Holtmann schrieb: use the linger support of the L2CAP socket and put a "sleep 2" betweenI'll give it a try tomorrow. I already tried the lingering option to be able to close the socket directly after the last send, but it didn't work for me. I had to put a sleep 1000 (ms) to prevent read errors. As much as I understood the man pages.... "When enabled, a *close <http://www.die.net/doc/linux/man/man2/close.2.html>*(2) or *shutdown <http://www.die.net/doc/linux/man/man2/shutdown.2.html>*(2) will not return until all queued messages for the socket have been successfully sent or the linger timeout has been reached. Otherwise, the call returns immediately and the closing is done in the background. When the socket is closed as part of *exit*(2), it always lingers in the background." ...disabling linger makes also a clean shutdown in the background. Is there also a timeout for background lingering? Anyway, thanks a lot for your help. I really appreciate it. I'll test your linger suggestion tomorrow. But I'm still of the opinion that l2cap should not return errno 16 to connection attempts to reachable devices even if a connection attempt is in progress to an unreachable device. There should be some concurrency possible. Regards Stefan ------------------------------------------------------- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: L2CAP: One failing connection hurts others?: 00050, Stefan Mischke |
|---|---|
| Next by Date: | Re: L2CAP: One failing connection hurts others?: 00050, Marcel Holtmann |
| Previous by Thread: | Re: L2CAP: One failing connection hurts others?i: 00050, Marcel Holtmann |
| Next by Thread: | Re: L2CAP: One failing connection hurts others?: 00050, Marcel Holtmann |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |