Messages in this thread | | | Date | Sun, 2 Nov 2008 10:48:51 -0800 (PST) | From | Davide Libenzi <> | Subject | Re: epoll behaviour after running out of descriptors |
| |
On Sun, 2 Nov 2008, Olaf van der Spek wrote:
> On Sun, Nov 2, 2008 at 7:25 PM, Davide Libenzi <davidel@xmailserver.org> wrote: > > A bug? For starters, epoll_wait does NOT create new files, so no EMFILE > > can come out from there. > > It's accept that returns EMFILE. > > > You are saturating the port space, and your whole code logic is rather (at > > least) buggy. Try a `netstat -n -t | grep TIME_WAIT | wc -l` > > What makes you think I'm saturating the port space? > That space is way bigger than 1 k AFAIK.
Why don't you grep for TIME_WAIT?
- Davide
| |