From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <555D7C73.8030905@basystemes.fr> Date: Thu, 21 May 2015 08:34:27 +0200 From: Thierry Bultel MIME-Version: 1.0 References: <555D77F6.7030007@basystemes.fr> In-Reply-To: <555D77F6.7030007@basystemes.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [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: xenomai@xenomai.org Cc: =?UTF-8?B?Q8OpbGluZQ==?= 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') Regards, Thierry