From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] SOCK_STREAM behaving like SOCK_SEQPACKET?
Date: Tue, 16 Nov 2004 11:20:55 +0100 [thread overview]
Message-ID: <1100600455.7208.111.camel@pegasus> (raw)
In-Reply-To: <Pine.GSO.4.33.0411161011350.22188-100000@horus.imag.fr>
Hi Catalin,
> I have a small application that communicates over an L2CAP channel
> (thus through a SOCK_SEQPACKET socket). The thread that does the
> L2CAP communication has also some UNIX domain sockets open (AF_UNIX,
> SOCK_STREAM) through which it communicates to other threads.
>
> The trouble is that these latter sockets (UNIX domain, SOCK_STREAM) behave
> like SOCK_SEQPACKET sockets, in that if I do not need read all the
> available data at once, it is gone (a second call to read() blocks). As
> far as I know this is not expected behavior for SOCK_STREAM sockets so I
> have a couple of possible explanations:
>
> 1. Linux kernel bug
> 2. Bluez bug
>
> which causes a SOCK_STREAM socket to act like a SOCK_SEQPACKET.
>
> The system is a Fedora Core 2 with kernel 2.6.8-1.521. I have tried the
> kernel 2.6.9-mh3 now and the problem still occurs.
may you wanna try the AF_UNIX without the L2CAP socket and see if you
can reproduce it without any Bluetooth involved. If yes, then it is
definitiv a bug in the AF_UNIX implementation.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel/listinfo/bluez-devel
next prev parent reply other threads:[~2004-11-16 10:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-16 9:15 [Bluez-devel] SOCK_STREAM behaving like SOCK_SEQPACKET? Catalin Drula
2004-11-16 10:20 ` Marcel Holtmann [this message]
2004-11-16 13:16 ` Catalin Drula
2004-11-16 13:42 ` 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=1100600455.7208.111.camel@pegasus \
--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