* Unaccepted Connections
@ 2003-07-07 14:03 Steve G
0 siblings, 0 replies; only message in thread
From: Steve G @ 2003-07-07 14:03 UTC (permalink / raw)
To: netdev
Hello,
I have a user space programming question and need some
ideas from networking gurus. I am working on a well known
inet daemon that listens for tcp connections and passes the
descriptor returned by listen() to a child program to
handle in the tcp/wait mode.
It turns out that many child programs error during their
startup and exit without accepting the connection
(linuxconf is one of them). The daemon that listens sees
the descriptor as readable and starts a new child...which
dies. This can loop forever.
The questions are:
1) How can a parent process reliably determine that its
child has indeed accepted the connection? (ptrace is not a
good solution.)
2) Is it possible to tell anything about a connection that
has returned from listen but not yet accepted? For instance
the source IP address? Or checksum? Can recvfrom PEEK into
the packet?
Thanks,
Steve Grubb
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-07-07 14:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-07 14:03 Unaccepted Connections Steve G
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).