You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Board: DOIT ESP32 DEVKIT V1
Core Installation version: 1.0.4
IDE name: Arduino IDE
Flash Frequency: 80Mhz
Upload Speed: 921600
Computer OS: Windows 10
Description:
HTTPClient::getString() freezes on empty response without included Content-length header, mostly in case of HTTP status code 204, when connection reuse is on and server doesn't forces connection close.
This happens when server is written in Go or simply with netcat. Server in NodeJS forces connection close on timeout.
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
Hardware:
Board: DOIT ESP32 DEVKIT V1
Core Installation version: 1.0.4
IDE name: Arduino IDE
Flash Frequency: 80Mhz
Upload Speed: 921600
Computer OS: Windows 10
Description:
HTTPClient::getString()
freezes on empty response without includedContent-length
header, mostly in case of HTTP status code 204, when connection reuse is on and server doesn't forces connection close.This happens when server is written in Go or simply with
netcat
. Server in NodeJS forces connection close on timeout.Server snippet for Go:
To run this, save it in the file named
server.go
and and start:go run server.go
Or use netcat with following response:
Save it (including the last empty line) in file named
resp.txt
and start:nc -l -p 666 <resp.txt
When connection reuse is set to
false
, it crashes when connecting to Go server:Sketch: (leave the backquotes for code formatting)
Debug Messages:
The text was updated successfully, but these errors were encountered: