Increase http timeout 10s -> 60s
This commit is contained in:
Mark Schlögel 2019-02-05 20:59:35 +01:00 committed by Arnim Läuger
parent 06367cb71c
commit 83cb35da52
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ static const char log_prefix[] = "HTTP client: ";
/* /*
* Timeout of http request. * Timeout of http request.
*/ */
#define HTTP_REQUEST_TIMEOUT_MS (10000) #define HTTP_REQUEST_TIMEOUT_MS (60000)
/* /*
* "full_response" is a string containing all response headers and the response body. * "full_response" is a string containing all response headers and the response body.

View File

@ -9,7 +9,7 @@ Basic HTTP *client* module that provides an interface to do GET/POST/PUT/DELETE
It is **not** possible to execute concurrent HTTP requests using this module. It is **not** possible to execute concurrent HTTP requests using this module.
Each request method takes a callback which is invoked when the response has been received from the server. The first argument is the status code, which is either a regular HTTP status code, or -1 to denote a DNS, connection or out-of-memory failure, or a timeout (currently at 10 seconds). Each request method takes a callback which is invoked when the response has been received from the server. The first argument is the status code, which is either a regular HTTP status code, or -1 to denote a DNS, connection or out-of-memory failure, or a timeout (currently at 60 seconds).
For each operation it is possible to provide custom HTTP headers or override standard headers. By default the `Host` header is deduced from the URL and `User-Agent` is `ESP8266`. Note, however, that the `Connection` header *can not* be overridden! It is always set to `close`. For each operation it is possible to provide custom HTTP headers or override standard headers. By default the `Host` header is deduced from the URL and `User-Agent` is `ESP8266`. Note, however, that the `Connection` header *can not* be overridden! It is always set to `close`.