Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.apps > #481
| From | Rainer Weikusat <rweikusat@mssgmbh.com> |
|---|---|
| Newsgroups | comp.os.linux.development.apps |
| Subject | Re: issue with tcp sockets on linux |
| Date | 2012-05-22 20:45 +0100 |
| Message-ID | <87aa10t2ya.fsf@sapphire.mobileactivedefense.com> (permalink) |
| References | <a1e2e61b-79fd-44c0-ae8f-c43aec0dd4ae@googlegroups.com> <87bolguxmp.fsf@sapphire.mobileactivedefense.com> <1ef15472-7d85-4890-9d65-886b85e72908@googlegroups.com> |
GH <yzghan@gmail.com> writes: > On Tuesday, May 22, 2012 9:57:18 AM UTC-4, Rainer Weikusat wrote: >> 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. > > Thank you for your reply. It is very insightful although my > situation is not exactly as you described. My app does not call > exec() or similar ones. It does conditionally call fork() where the > child does not close() the open fd's. [Could you please order quoted text and new text in this way?] Since descriptors don't change at all accross a fork, that obviously suffers from the same issue. On linux, the netstat -np command could be used to determine which process keeps your connection open.
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Next in thread | Find similar
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