1
0
mirror of https://github.com/arduino-libraries/ArduinoHttpClient.git synced 2025-04-19 21:22:15 +03:00

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.
This commit is contained in:
carbotaniuman 2022-03-01 08:07:10 -06:00 committed by GitHub
parent c014e0cdb8
commit 527967d010
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,7 +340,7 @@ protected:
// Number of milliseconds that we wait each time there isn't any data // Number of milliseconds that we wait each time there isn't any data
// available to be read (during status code and header processing) // 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 // Number of milliseconds that we'll wait in total without receiving any
// data before returning HTTP_ERROR_TIMED_OUT (during status code and header // data before returning HTTP_ERROR_TIMED_OUT (during status code and header
// processing) // processing)