10

So, I want to use node.js and http request pipelining, but I want to use HTTP only as a transport, nothing else. I am interested in exploiting the request pipelining feature. However, one problem that I am running into is that till a send a response to a previous request, the next requests's callback isn't fired by node. I want a way to be able to do this. I shall be handling the ordering of results in the application. Is there a way to do this?

The HTTP RFC mentions that the responses should be in order, but I don't see any reason for node.js to not call the next callback till the 1st one is responded to. The application can in theory send the response to the 2nd query as a response to the 1st one (as long as there is some way for the recipient to know that it is a response to the 2nd one).

2
  • Okay, there doesn't seem to be any way that I can see. Will have to write an HTTP parser and server component. Commented Mar 27, 2011 at 5:25
  • 2
    Did you ask on the Node.js IRC channel? (on freenode) Theres plenty of very good help there Commented Apr 11, 2011 at 8:25

1 Answer 1

6

The HTTP client in NodeJS does not support pipelining. (Slightly old post from Ryan, but I'm fairly sure it still holds.)

Sign up to request clarification or add additional context in comments.

1 Comment

Well, if the client does not support pipelining, there are very slim chances of it supporting what I wanted!! Thanks!! :-)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.