vegeta icon indicating copy to clipboard operation
vegeta copied to clipboard

chunked encoding reception is wrong

Open craff opened this issue 1 year ago • 3 comments

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 avatar Jun 29 '23 02:06 craff

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

craff avatar Jun 29 '23 02:06 craff

go1.14.2

This is old go runtime.

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

AlexanderYastrebov avatar Jul 03 '23 10:07 AlexanderYastrebov

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

tsenart avatar Aug 18 '23 11:08 tsenart