Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can HTTP server application reject an HTTP Pipeline request gracefully?

Is there a specific (or agreed upon) HTTP response message (or another action except for disconnection) to clarify that the server does not accept pipelined HTTP requests?

I'm looking for something that will make the client stop pipelining it's requests, and to send each request separately.

If so, what is it? Thank you!

like image 255
Reflection Avatar asked Jan 18 '26 05:01

Reflection


1 Answers

I'm a bit late on this one :-)

For reference the clean way of rejecting a pipelined connection is to add a Connection: close header on the first and unique response.

An HTTP client receiving a close on the first response of a pipeline MUST replay all remaining queries, and will certainly choose to stop pipelining.

like image 195
regilero Avatar answered Jan 21 '26 00:01

regilero



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!