Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Given we have Apache web server and a client which sends several pipelined requests.

According to RFC server is supposed to return responses in the same order as requests are sent. So, does it mean server processes requests sequentially or it would still process them in parallel only waiting for slow ones when outputting the lot?

If they are processed in parallel then faster requests (in terms of amount of server time required) which were sent later will be finished earlier then slow requests.

Eg. Request 1 requires 60 seconds to be processed Request 2 - 5 sec Request 3 - 5 sec Request 4 - 30 sec Request 5 - 5 sec

All these 5 requests are sent one after another. Will requests 2,3,5 be completely processed (but not returned) before slow requests 1 and 5 or server would wait for each requests before starting processing another one?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

After making several tests i can confirm that Apache does infact wait for each request to be processed before starting processing the next one so processing is SEQUENTIAL.

share|improve this answer
1  
I'm reading http is essentially FIFO, even with pipelined connections. I just came across this post today, which describes some of the problems with http: igvita.com/2011/04/07/life-beyond-http-11-googles-spdy –  mahnsc May 4 '11 at 22:32
    
This articles confirms my finding, thank you. Interesting read as well. –  alexeit May 5 '11 at 9:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.