All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Thierry Bultel <thierry.bultel@basystemes.fr>, xenomai@xenomai.org
Cc: Céline <celine.leberre.prestataire@basystemes.fr>
Subject: Re: [Xenomai] Are concurrent writes to XDDP sockets allowed ?
Date: Thu, 21 May 2015 14:07:48 +0200	[thread overview]
Message-ID: <555DCA94.1070909@xenomai.org> (raw)
In-Reply-To: <555D7C73.8030905@basystemes.fr>

On 05/21/2015 08:34 AM, Thierry Bultel wrote:
> Hi,
> In an application, we have one regular thread listening on an RTP device,
> and 2 realtime threads that concurrently write data in the XDDP socket
> backend.
> We use the POSIX skin.
> 
> Sometimes, the regular thread gets its blocking read() call just return 0.
> That never happens with the classic "one reader, one writer" case.
> 
> Also, we notice that the 'return 0' case occurrence is not the same,
> depending
> on the fact that the realtime task uses 'write' instead of 'sendto'
> (more occurrences with 'sendto')
> 

There is no restriction with respect to concurrent sending to such socket.

Knowing about the Xenomai release number, and a simple test code that
actually illustrates the intended usage and ideally reproduces the issue
would help.

-- 
Philippe.


  reply	other threads:[~2015-05-21 12:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <555D77F6.7030007@basystemes.fr>
2015-05-21  6:34 ` [Xenomai] Are concurrent writes to XDDP sockets allowed ? Thierry Bultel
2015-05-21 12:07   ` Philippe Gerum [this message]
2015-05-21 15:03     ` Thierry Bultel
2015-05-21 15:23       ` Philippe Gerum
2015-05-21 15:32         ` Thierry Bultel
2015-05-22  7:42           ` Philippe Gerum
2015-05-22 10:26             ` Thierry Bultel

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=555DCA94.1070909@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=celine.leberre.prestataire@basystemes.fr \
    --cc=thierry.bultel@basystemes.fr \
    --cc=xenomai@xenomai.org \
    /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.