Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zzzcpan
on Sept 5, 2013
|
parent
|
context
|
favorite
| on:
It ain't about the callbacks, it's about the flow ...
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
rbrcurtis
on Sept 6, 2013
[–]
Ahh ok. I thought you meant at the OS level.
zzzcpan
on Sept 6, 2013
|
parent
[–]
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: