Package: lua-http / 0.4-3

Metadata

Package Version Patches format
lua-http 0.4-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 http h1_stream handle EOF when body_read_type length.patch | (download)

http/h1_stream.lua | 2 2 + 0 - 0 !
spec/h1_stream_spec.lua | 27 27 + 0 - 0 !
2 files changed, 29 insertions(+)

 http/h1_stream: handle eof when `body_read_type==length`

If a client closes the connection before sending the expected number of bytes
then return `EPIPE`.
This fixes a potential infinite draining loop when trying to trying to
`:shutdown()` a stream.