Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have a question about the following passage regarding the LIFO nature of epoll-and-accept:

>"This behavior causes the busiest process, the one that only just went back to event loop, to receive the majority of the new connections."

What is meant by a process "that only just went back to the event loop"? The worker process is the event loop no? Isn't the worker process never not running an event loop?

Or is this just meant to say when the worker process is not in the section of the event loop that's responsible for the enqueueing and dequeueing of events?



At the end of the event loop you wait for new events. That part.


Thanks. For clarification, the event queue that nginx's worker process is using for its input is the same accept() queue that the passive nginx listener socket is populating. Is that correct?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: