Linux bluetooth development
 help / color / mirror / Atom feed
From: "Daryl Van Vorst" <daryl@wideray.com>
To: "'Marcel Holtmann'" <marcel@rvs.uni-bielefeld.de>
Cc: "'BlueZ Mailing List'" <bluez-devel@lists.sourceforge.net>,
	"'MaxKrasnyansky'" <maxk@qualcomm.com>
Subject: RE: [Bluez-devel] Qualification - L2CA_DisconnectCfm
Date: Mon, 12 May 2003 17:11:27 -0700	[thread overview]
Message-ID: <000d01c318e4$32a57460$1a01010a@baked> (raw)
In-Reply-To: <1052783343.1132.159.camel@pegasus.local>

Marcel,

The behaviour you list below makes sense to me. I think there's supposed to
be a 60 second timeout instead of 5 seconds, but that seems a bit excessive
to me. Does it matter? If we close L2CAP and then the remote side sends an
L2CAP_DISCONN_RSP, does the fact that we've already closed the channel caus=
e
any different packets to be exchanged?

The only advantage that I see in the capability of a blocking close is
completeness. I can't think of a scenario where it really matters, but you
never know what someone will cook up.

I don't believe the application actually needs to know that the
disconnection was normal, just that it has definitely been disconnected. I'=
m
a little fuzzy on the definition of "disconnected". Telling the app that
there was a timeout is optional.

If the stack closing the L2CAP connection and then receiving an
L2CAP_DISCONN_RSP afterwards does not cause any different traffic to occurr
(ie: the remote side can't tell the difference), then we're probably ok. Is
this true?  Then the only difference between what we do and what the spec
says is _when_ the "L2CA_DisconnectCfm" gets sent to the app. In our case,
it would be immediately (i.e.: close() returned success). In the test case,
it is 60 seconds after sending the disconnect request.

-Daryl.

> -----Original Message-----
> From: Marcel Holtmann [mailto:marcel@rvs.uni-bielefeld.de]=20
> Sent: May 12, 2003 4:49 PM
> To: Daryl Van Vorst
> Cc: 'BlueZ Mailing List'; 'MaxKrasnyansky'
> Subject: RE: [Bluez-devel] Qualification - L2CA_DisconnectCfm
>=20
>=20
> Hi Daryl,
>=20
> > What happens when you close an L2CAP connection?
>=20
> if you close() the L2CAP connection, we send a=20
> L2CAP_DISCONN_REQ and set a timeout of 5 seconds. In the case=20
> of L2CAP_DISCONN_RSP or the timeout, we close the L2CAP channel.
>=20
> Max, please correct me if this is wrong, because I am not 100% sure.
>=20
> > There is a test (see below) where the IUT sends an L2CAP disconnect=20
> > request but the tester ignores it (doesn't send a disconnect=20
> > response). To pass the test we must at least show an=20
> > "L2CAP_DisconnectCfm" to the application. Indicating that a timeout=20
> > ocurred is optional.
>=20
> I don't understand why the application needs to now if the=20
> L2CAP channel is correctly disconnected? We close the L2CAP=20
> socket and the rest has to be done by the kernel. If the link=20
> is dead and the other side didn't response, waiting 60=20
> seconds won't help. Or did you see any advantage of a=20
> blocking close()?
>=20
> Regards
>=20
> Marcel
>=20
>=20
>=20

  reply	other threads:[~2003-05-13  0:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-10  0:04 [Bluez-devel] Qualification - L2CA_DisconnectCfm Daryl Van Vorst
2003-05-12 22:43 ` Daryl Van Vorst
2003-05-12 23:48   ` Marcel Holtmann
2003-05-13  0:11     ` Daryl Van Vorst [this message]
2003-05-13 18:00       ` Max Krasnyansky
2003-05-13 22:44         ` Marcel Holtmann
2003-05-13 23:11           ` Max Krasnyansky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000d01c318e4$32a57460$1a01010a@baked' \
    --to=daryl@wideray.com \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=marcel@rvs.uni-bielefeld.de \
    --cc=maxk@qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox