Re: Listening, accepting, kqueue, WFT?
Re: Listening, accepting, kqueue, WFT?
- Subject: Re: Listening, accepting, kqueue, WFT?
- From: Daniel Jalkut <email@hidden>
- Date: Sat, 19 Nov 2005 11:44:12 -0500
Hi Scott - sort of some shots in the dark here, but may help until
somebody more knowledgeable responds:
On Nov 19, 2005, at 10:12 AM, Scott Ribe wrote:
new DbApp::Network::Server:: Connection(
csock, sin );
Does this ever get "delete"d? I wonder if you could be failing to call
close on the "csock" handed off to the Connection object? I think this
could lead you to running out of file descriptors. Even if the socket
"closes itself" by losing connection with the client, I think your
descriptor will remain allocated.
This works properly for days and hundreds of connections, then stops
handling new connections. I caught it in the act yesterday, and saw
from
tail -f on the log file that it was continuously writing "error (24)
accepting a connection". I used netstat and lsof to poke around, and
there
were only a handful (~10?) of files open and the 20-30 connected
sockets
that I expected, plus a half-dozen or so in close wait state (sudo
lsof | wc
gave me about 3000 total for the server).
Can you account for those 3000 lines? Are there a bunch of mysterious
lines associated with your application?
Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
- Prev by Date:
Listening, accepting, kqueue, WFT?
- Next by Date:
Re: Listening, accepting, kqueue, WFT?
- Previous by thread:
Listening, accepting, kqueue, WFT?
- Next by thread:
Re: Listening, accepting, kqueue, WFT?
- Index(es):