Unaccepted tcp connections

From: Steve G (linux_4ever@yahoo.com)
Date: Thu Jun 19 2003 - 10:24:07 EST


Hello,

This e-mail is offtopic but is related to the networking
code. I am working on an inet daemon that listens for tcp
connections and passes the descriptor returned by listen to
a child program to handle. It turns out that many child
programs error during 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. This can loop forever.

The question is how can a parent process reliably determine
that its child has accepted the connection? Also, is it
possible to tell anything about a connection that has
returned from listen but not yet accepted? For instance the
source IP address?

Thanks,
Steve Grubb

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 23 2003 - 22:00:29 EST