On Friday, February 14, 2014 2:32:01 PM UTC-5, Ravi wrote:
>
> Please tell me where the magic happens ?
>

By default a global http(s) Agent is used, which limits the number of 
number of concurrent sockets. However the Agent will also by default try to 
use `Connection: keep-alive` for future requests to the same host. This can 
improve efficiency.

By disabling the use of any Agent, you're creating a separate socket for 
that request that is not apart of any connection pool. When you do this 
however, you have to be aware of what your open file descriptor limit is 
set to because you could hit that limit depending on how many requests 
you're performing in a short amount of time.
 

>
> Also, i tried some crazy scenario and got the following:
> ERROR: read ECONNRESET
>
>
What crazy scenario would that be? Are the clients and the server on the 
same machine? This error means the server has reset the TCP connection 
(unexpectedly). 

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to