esp8266 / esp8266/Arduino

getString() timeouts when the response is empty (return code 204)

Open
#6,919 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
16.7k
Forks
13.1k
PR merge metrics
No merged PRs in 30d

Description

When an empty HTTP response is received with response code 204 (which is a valid response), the getString() call will wait for data until it timeouts. Instead, it should figure out from the response code that there is no data to be received, and should not wait unnecessarily.

A real life example of his this can affect legitimate traffic can be seen here:
https://github.com/tobiasschuerg/ESP8266_Influx_DB/issues/25

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.