axon icon indicating copy to clipboard operation
axon copied to clipboard

better queue flushing

Open tj opened this issue 12 years ago • 2 comments

if a client is having a bad time we shouldn't be plastering it with a large queue on connection haha :D, this could easily lead to thrashing. normally this would "just work" but yeah not with node :(

tj avatar Jan 01 '13 21:01 tj

Yeah... I am assuming you are referring actually handling pause() and resume(), etc. instead of just checking if sock.writable. I would only imagine we'd have to go removeListener 7 ways to sunday on various emitters, etc... add timeouts for the resume events... ALOT more code haha...

gjohnson avatar Jan 01 '13 22:01 gjohnson

yeah haha we'd have to actually check all the write()s to see if they're flushing to the kernel buffer and all that crap

tj avatar Jan 01 '13 22:01 tj