Skip to content

Commit 527967d

Browse files
Reduce timeout from 1000ms to 100ms
Using this with the Arduino `WiFiClient` makes simple requests really slow. Reduce the timeout in order to make it faster.
1 parent c014e0c commit 527967d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HttpClient.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ class HttpClient : public Client
340340

341341
// Number of milliseconds that we wait each time there isn't any data
342342
// available to be read (during status code and header processing)
343-
static const int kHttpWaitForDataDelay = 1000;
343+
static const int kHttpWaitForDataDelay = 100;
344344
// Number of milliseconds that we'll wait in total without receiving any
345345
// data before returning HTTP_ERROR_TIMED_OUT (during status code and header
346346
// processing)

0 commit comments

Comments
 (0)