From 527967d010b0b2e290ca051e6ce9e6c821f00c58 Mon Sep 17 00:00:00 2001 From: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> Date: Tue, 1 Mar 2022 08:07:10 -0600 Subject: [PATCH] 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. --- src/HttpClient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpClient.h b/src/HttpClient.h index 6a7aa1d..1aeb1d5 100644 --- a/src/HttpClient.h +++ b/src/HttpClient.h @@ -340,7 +340,7 @@ protected: // Number of milliseconds that we wait each time there isn't any data // available to be read (during status code and header processing) - static const int kHttpWaitForDataDelay = 1000; + static const int kHttpWaitForDataDelay = 100; // Number of milliseconds that we'll wait in total without receiving any // data before returning HTTP_ERROR_TIMED_OUT (during status code and header // processing)