Reputation: 509
Can some one explain me how pipelined requests are treated on a server in python (or any other scripting language)?
Suppose I have web services made in python callable by iOS client. The client pipelines the requests and sends them to server. How can I receive and handle these requests on the server and send the appropriate response?
Upvotes: 0
Views: 994
Reputation: 10126
Wikipedia and Mozilla have good pipelining explanations. The following picture basically says it all.
Normally (without pipelining), the client sends a request to the server and waits for a response before sending another request. With pipelining, however, the client sends multiple requests without waiting for the server's response.
Actually, not much. All a server has to do to support pipelining is ensure that "that network buffers are not discarded between requests" (wikipedia). All HTTP/1.1 servers support pipelining.
The client is responsible for the bulk of the error handling (resending packets, etc.) and other headaches that come with implementing pipelining.
Upvotes: 2