From: Marcel Holtmann <marcel@holtmann.org>
To: Carlos AM <Carlos@naxus.biz>
Cc: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] modify RFCOMM_DISC_TIMEOUT
Date: Fri, 23 Jul 2004 11:39:14 +0200 [thread overview]
Message-ID: <1090575554.4791.5.camel@pegasus> (raw)
In-Reply-To: <003b01c47095$488aa3e0$5000005a@naxus>
Hi Carlos,
> I run a rfcomm server built on top of bluez using sockets, the client runs a
> different bluetooth protocol implementation that is very buggy and sometimes
> stops the rfcomm comunication without sending a DISC. So the rfcomm server
> waits for 20 seconds (RFCOMM_DISC_TIMEOUT) and then closes the connections
> and become available again. The sending loop of the server is:
>
> //using sockets
> //send until write returns -1
> while(n>=0)
> {
> n=write(client,s,strlen(s));
> sleep(1);
> }
> //go to listen again
>
>
> If the client simply stops the communication, not disconnect, the server
> must be available as soon as possible. 20 seconds it's too long for our
> application.
what you want is an idle timeout detection. The RFCOMM_DISC_TIMEOUT is
not meant for doing this. Show us the output of "hcidump -x -t" while
this happens.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2004-07-23 9:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-22 14:19 [Bluez-devel] modify RFCOMM_DISC_TIMEOUT Carlos AM
2004-07-22 17:32 ` Marcel Holtmann
[not found] ` <003b01c47095$488aa3e0$5000005a@naxus>
2004-07-23 9:39 ` Marcel Holtmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-07-28 12:12 Carlos AM
2004-07-28 12:22 ` Marcel Holtmann
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=1090575554.4791.5.camel@pegasus \
--to=marcel@holtmann.org \
--cc=Carlos@naxus.biz \
--cc=bluez-devel@lists.sourceforge.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.