On Mon, Apr 9, 2012 at 2:32 PM, FleetCommand <[email protected]> wrote:
> Hi all ,
>
> I would like to know , how node.js handles if two requests come in parallel.
> For example : first a  dynamic http request comes wich requires some
> processing.
>  suppose node.js is fetching parameters from request body and performing
> some validations,
>  At the same time if a new request comoes (it can either be static file
> serving request or dynamic).
>   So how node.js will handle this situation.

Amit,

Each request is still coming on a different TCP socket, for all
purposes two different channels.
Each of these sockets has it's own object in the JS environment as
well (the argument to the tcp/http
server callback). read() is done on a socket, so the two requests data
will not overlap.

Nikhil

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