From 3f88efdabe069f3faf7fb11c16bf02a06e237b8e Mon Sep 17 00:00:00 2001 From: Anders Sandblad Date: Thu, 18 May 2023 11:55:12 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e9c163b..3e96341 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ [![Compile Examples status](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/compile-examples.yml/badge.svg)](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/compile-examples.yml) [![Spell Check status](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/spell-check.yml/badge.svg)](https://github.com/arduino-libraries/ArduinoHttpClient/actions/workflows/spell-check.yml) +Elysics changes: make the library faster by reducing the wait for data delay (kHttpWaitForDataDelay). + ArduinoHttpClient is a library to make it easier to interact with web servers from Arduino. Derived from [Adrian McEwen's HttpClient library](https://github.com/amcewen/HttpClient) From ab2fc887234c6209fe3cf33c9c5481334fd16a5e Mon Sep 17 00:00:00 2001 From: Anders Sandblad Date: Thu, 18 May 2023 11:58:32 +0200 Subject: [PATCH 2/2] Reduce delay time and response time --- src/HttpClient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpClient.h b/src/HttpClient.h index 6a7aa1d..f4e66a4 100644 --- a/src/HttpClient.h +++ b/src/HttpClient.h @@ -340,7 +340,7 @@ class HttpClient : public Client // 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 = 5; /* Elysics changed to 5 for faster responsetime */ // 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)