Re: Listening, accepting, kqueue, WFT?
Re: Listening, accepting, kqueue, WFT?
- Subject: Re: Listening, accepting, kqueue, WFT?
- From: Scott Ribe <email@hidden>
- Date: Sat, 19 Nov 2005 10:11:48 -0700
- Thread-topic: Listening, accepting, kqueue, WFT?
>> 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.
Ah, that is a possibility I need to look into. That object *should* get
deleted, and in the process close the socket, but there could be some bug in
the handling of disconnects. I can easily put in a counter to track and log
how many connection objects I have outstanding. Is there any way to figure
out how many descriptors I have allocated?
Any suggestions for a quick way to get a thread count on a deployment build
of an app? The connection object manages threads, so that would have been a
quick-and-dirty way for me to get an idea of whether I'd had some not shut
down properly. Of course I can just add internal counters and log them now
that I know I'm interested ;-)
There's also detailed info in the log about connection startup and shutdown,
but tracking that info over a period of days would be a pain...
> Can you account for those 3000 lines? Are there a bunch of mysterious
> lines associated with your application?
There's not much associated with my process id, and it looks pretty
reasonable to me.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice
_______________________________________________
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:
Re: Listening, accepting, kqueue, WFT?
- Next by Date:
Re: Listening, accepting, kqueue, WFT?
- Previous by thread:
Re: Listening, accepting, kqueue, WFT?
- Next by thread:
Re: Listening, accepting, kqueue, WFT?
- Index(es):