Faizan Ali
Faizan Ali

Reputation: 509

how are pipelined requests handled on the server side in python?

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

Answers (1)

Matthew Adams
Matthew Adams

Reputation: 10126

HTTP Pipelining

Wikipedia and Mozilla have good pipelining explanations. The following picture basically says it all.

"Schema of non-pipelined vs. pipelined connection." - Wikipedia

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.

So, what does my server have to do to implement pipelining?

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

Related Questions