On Jul 6, 2:46 pm, Dan Milon <[email protected]> wrote:
> I was thinking of using stream.pause on the connections, but i am not
> sure how this works internally. Does it just buffer the data in memory,
> or using some tcp protocol pause?

AFAIK only the http/https modules will internally buffer any data that
makes it in after calling request.pause(), which is then replayed
after calling request.resume().

For any other core module, no internal buffering is done when pausing
the connection. So this means you'd have to do your own buffering
after pausing the connection. IIRC for TCP, pausing a connection in
node results in sending (protocol-level) NAKs to the other end to keep
them from sending more data.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to