aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/ws_shutdown_reason_commands_h.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-10-09 20:54:33 +0200
committerLoïc Hoguin <[email protected]>2019-10-09 20:54:33 +0200
commitcc54c207e35f3ab7a2dfc105eef39fe7d3bf1633 (patch)
treec33b7e9398d2c4b4a1c1906e27383185673004df /test/handlers/ws_shutdown_reason_commands_h.erl
parent0c4103984b28c9df1770a0eea0d14ba9cacc49e0 (diff)
downloadcowboy-cc54c207e35f3ab7a2dfc105eef39fe7d3bf1633.tar.gz
cowboy-cc54c207e35f3ab7a2dfc105eef39fe7d3bf1633.tar.bz2
cowboy-cc54c207e35f3ab7a2dfc105eef39fe7d3bf1633.zip
Implement flow control for HTTP/1.1
We now stop reading from the socket unless asked to, when we reach the request body. The option initial_stream_flow_size controls how much data we read without being asked, as an optimization. We may also have received additional data along with the request headers. This commit also reworks the timeout handling for HTTP/1.1 because the stray timeout message was easily reproducible after implementing the flow control. The issue should be gone for good this time.
Diffstat (limited to 'test/handlers/ws_shutdown_reason_commands_h.erl')
0 files changed, 0 insertions, 0 deletions