1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/lib
Peter Raboud 7316dbd752
Set Connection: closed when running without request queueing (#2216)
* Fix test requires

* Refactor how the HTTP connection header is set

This helps make it clearer how this branching works, and explicitly
documents that this is a difference in which default HTTP 1.0 vs 1.1
assume.

* Fix Connection header when not using queue_requests

When running with queue_requests=false, make the Connection header
reflect that the server will close the connection after the request is
completed.

(This is required by
https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html, specifically:
"HTTP/1.1 applications that do not support persistent connections MUST
include the "close" connection option in every message.")

This could previously cause clients which looked at this header to
attempt to reuse connections which the server had closed.

* History

* Re-roll CI builds

* Rebuild again
2020-04-06 13:39:21 +09:00
..
puma Set Connection: closed when running without request queueing (#2216) 2020-04-06 13:39:21 +09:00
rack/handler Update .run method options param 2020-03-18 15:22:22 -04:00
puma.rb All Puma threads are named (#1968) 2019-09-15 10:52:34 +02:00