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

Sorry, don't know much about nodejs. But it seems that node does have a way to remove/setup events, and pause read events: http://nodejs.org/api/events.html#events_emitter_removeliste... http://nodejs.org/api/net.html#net_socket_pause


Ahh ok. I thought you meant at the OS level.


Well, kind of. Pause should instruct event loop to stop waiting for read events from the OS for particular fd, i.e. remove from epoll/kqueue, so new connections would stuck in backlog at the OS level.




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

Search: