Message-ID: <555DCA94.1070909@xenomai.org> Date: Thu, 21 May 2015 14:07:48 +0200 From: Philippe Gerum MIME-Version: 1.0 References: <555D77F6.7030007@basystemes.fr> <555D7C73.8030905@basystemes.fr> In-Reply-To: <555D7C73.8030905@basystemes.fr> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] Are concurrent writes to XDDP sockets allowed ? List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thierry Bultel , xenomai@xenomai.org Cc: =?windows-1252?Q?C=E9line?= 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.