Commit 83cb35da authored by Mark Schlögel's avatar Mark Schlögel Committed by Arnim Läuger
Browse files

Patch 1 (#2646)

Increase http timeout 10s -> 60s
parent 06367cb7
......@@ -44,7 +44,7 @@ static const char log_prefix[] = "HTTP client: ";
/*
* 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.
......
......@@ -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.
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`.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment