From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] Help, Connection Reset by peer.
Date: Tue, 07 Feb 2006 12:07:27 +0100 [thread overview]
Message-ID: <1139310447.15160.4.camel@localhost> (raw)
In-Reply-To: <20060204172632.37736.qmail@web53104.mail.yahoo.com>
Hi,
> I know bluez supports max 7 rfcomm connections at one
> time, and so it works.
> I implemented obex push profile(a part of it) and i
> use it to send files to cellphones over rfcomm.
> The strange thing is that sometimes when more than one
> connection are working at the same time without any
> particular apparent reason fail and some of the
> connections or both of them stay open.
>
> i close these connections using "hcitool dc"
>
> when i try to browse the services it gives me:
> Failed to connect SDP server: Connection reset by peer
>
> i also stop my application
> i restart hcid,sdpd
> but still the same error,
> then i have to reboot to make it work again.
>
> any idea about what can it be the reason?
> it happens rarely,randomly without any particular
> condition except of the fact that there are two open
> connections working, and i use kernel 2.4.27 or 2.4.29
>
> is there any way to reset the device without needing
> to reboot the system?
>
> I must say that the only thing my application does is,
>
> while true
> 1-search for devices,
> 2-for every device
> find the service channel
> start a new thread with the sendfile function
> goto while
>
> so i don't think my application is the problem.
I wouldn't bet on it, but this can also be a kernel problem. The old 2.4
kernel series is no longer actively maintained and you might consider
switching to the latest 2.6 kernel. And you run "hcidump -X -V" to see
what really happens.
Regards
Marcel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
prev parent reply other threads:[~2006-02-07 11:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-04 17:26 [Bluez-devel] Help, Connection Reset by peer ermal mino
2006-02-07 11:07 ` Marcel Holtmann [this message]
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=1139310447.15160.4.camel@localhost \
--to=marcel@holtmann.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).