Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #479

Re: issue with tcp sockets on linux

From Rainer Weikusat <rweikusat@mssgmbh.com>
Newsgroups comp.os.linux.development.apps
Subject Re: issue with tcp sockets on linux
Date 2012-05-22 14:57 +0100
Message-ID <87bolguxmp.fsf@sapphire.mobileactivedefense.com> (permalink)
References <a1e2e61b-79fd-44c0-ae8f-c43aec0dd4ae@googlegroups.com>

Show all headers | View raw


GH <yzghan@gmail.com> writes:
> Hi all, I've run my application into an issue with recv() hanging
> while the server already exited. recv() is not returning any data or
> error. More puzzling is that netstat shows on client side the
> connection in ESTABLISHED state while on server side netstat reports
> no such connection. Can someone shed some light or share any
> experience on this?

The usual cause of this phenomenon would be that the server started
another program which is still running and inherited the established
socket because FD_CLOEXEC wasn't set.

Back to comp.os.linux.development.apps | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

issue with tcp sockets on linux GH <yzghan@gmail.com> - 2012-05-22 06:25 -0700
  Re: issue with tcp sockets on linux Rainer Weikusat <rweikusat@mssgmbh.com> - 2012-05-22 14:57 +0100
    Re: issue with tcp sockets on linux GH <yzghan@gmail.com> - 2012-05-22 11:24 -0700
      Re: issue with tcp sockets on linux Rainer Weikusat <rweikusat@mssgmbh.com> - 2012-05-22 20:45 +0100
        Re: issue with tcp sockets on linux GH <yzghan@gmail.com> - 2012-06-04 07:01 -0700
          Re: issue with tcp sockets on linux "Ersek, Laszlo" <lacos@caesar.elte.hu> - 2012-06-05 00:22 +0200

csiph-web