vegeta
vegeta copied to clipboard
chunked encoding reception is wrong
Version and Runtime
Version:
Commit:
Runtime: go1.14.2 linux/amd64
Date:
Expected Behaviour
According to the documentation, the chunked encoding is followed by a possibly empty sequence of headers in HTTP 1.1, which means that there is at least one '\r\n' at the end. Firefox enters a loop if you do not provide this empty trailer.
Actual Behaviour
vegeta gives this if you do provide the empty trailer:
2023/06/28 15:58:16 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
Additional Context
Remark: trailer is not used not implemented by most browser. Still the empty trailer should be there.
go1.14.2
This is old go runtime.
Make sure you use latest vegeta version, see also https://github.com/tsenart/vegeta/pull/625
Can you provide a reproduction program with latest version of Go?