Thread (74 messages) flat view 74 messages, 4 authors, 2003-06-13

RE: [Bluez-devel] Qualification Testing

From: Max Krasnyansky <hidden>
Date: 2003-05-19 21:17:46

We now have full support for SO_LINGER socket option (2.4 BK is already updated). 
I also added -L option and some more error checking to l2test and rctest.

./l2test -L 60 -s -b 1000 -N 10 
this will enabled SO_LINGER for 60 seconds and report an error if channel disconnect
timed out or failed for any other reason.

I tested it with HCIEmu and everything seems to work as expected.

btw Regarding RFCOMM disconnect problem that Marcel mentioned. I check the spec again
and it's indeed option to send DISC for DCL 0.

"5.2.2 Close-down procedure
The device closing the last connection (DLC) on a particular session is responsible
for closing the multiplexer by closing the corresponding L2CAP channel.
Closing the multiplexer by first sending a DISC command frame on DLCI 0 is
optional, but it is mandatory to respond correctly to a DISC (with UA response)."

So I think it's ok that we don't wait for UA response before closing L2CAP channel.

Max
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help