[omniORB] Bug in tcpConnection::Recv and Send functions

Serguei Kolos serguei.kolos at cern.ch
Mon May 11 15:27:27 UTC 2020


Hi Duncan

On 11/05/2020 17:08, Duncan Grisby wrote:
> I think the problem here is that the next call to poll() is not
> clearing errno. That means that it sees a POLLERR return, and should
> notice the connection closure, but instead errno is still set to EINTR.
>
> Does it work if you modify that code with the continue to clear errno
> first?
>
>
> if (tx == RC_SOCKET_ERROR) {
>    if (ERRNO == RC_EINTR) {
>      errno = 0;
>      continue;
>    }
I have just tested this fix and can confirm that it cured the issue. 
Thank you.

Cheers,
Serguei



More information about the omniORB-list mailing list