tsenart / vegeta

HTTP load testing tool and library. It's over 9000!
http://godoc.org/github.com/tsenart/vegeta/lib
MIT License
23.06k stars 1.34k forks source link

chunked encoding reception is wrong #624

Open craff opened 1 year ago

craff commented 1 year ago

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

documentation

craff commented 1 year ago

Remark: trailer is not used not implemented by most browser. Still the empty trailer should be there.

AlexanderYastrebov commented 1 year ago

go1.14.2

This is old go runtime.

Make sure you use latest vegeta version, see also https://github.com/tsenart/vegeta/pull/625

tsenart commented 11 months ago

Can you provide a reproduction program with latest version of Go?