* socket close problems
@ 2001-03-21 2:27 Lee Chin
0 siblings, 0 replies; only message in thread
From: Lee Chin @ 2001-03-21 2:27 UTC (permalink / raw)
To: linux-kernel
Hi,
On linux I have the following problem:
I accept connections from client sockets, read the request and send data
back and close the socket.
After a while, I run out of file descriptors... and when I run netstat, all
my connections to the clients are in state CLOSING... and I know the client
has received all the data and disconnected too.
What could I be doing wrong? The socket is set obtained via the accept
system call. I set the socket to non blocking via fcntl and use
SO_REUSEADDR via setsockopt... and after using the socket for read and
write, I simply call shutdown followed by a close
Thanks
Lee
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-03-21 2:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-21 2:27 socket close problems Lee Chin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox