The Node.js is blocked by the server side long time http request.

31 views
Skip to first unread message

Xiao

unread,
Aug 18, 2015, 12:07:49 AM8/18/15
to nodejs

Hi all,


I am using the Node.js as a web server proxy. All the job of my Node.js application is forward the web request to back-end web service and then post back the response. According to my understanding, the new client request should not be blocked by the previous client request, because the Node.js just forward the previous request and push the callback into the event loop. But in my application, the Node.js won't response the new client request until it has finished the response of previous request. 

I am not sure whether it is the correct behavior of Node.js or just my incorrect usage. The link of the question on stack overflow is this. http://stackoverflow.com/questions/31984806/what-is-the-correct-behavior-for-node-js-while-node-js-is-requesting-a-long-time which contains all the details and codes there. Please help on this. Thanks a lot.


Reply all
Reply to author
Forward
0 new messages