Closed pablosun closed 7 years ago
It always takes ~4 seconds for WiFiClient::available() to become true. This is strange since the server already gave response.
WiFiClient::available()
true
available() takes a long time not because of receiving data, but the request is buffered in lwIP and send too late. After force flushing after calling tcp_write, the wait time reduced from ~3 secs to < 1 sec.
available()
tcp_write
It always takes ~4 seconds for
WiFiClient::available()
to becometrue
. This is strange since the server already gave response.