esp_http_client: Fix when receive FIN, close the connection in internal.

Closes https://github.com/espressif/esp-idf/issues/7036
This commit is contained in:
yuanjm
2021-07-02 15:25:06 +08:00
committed by bot
parent e1c978a03b
commit 02367b44ef
3 changed files with 9 additions and 0 deletions

View File

@@ -167,6 +167,7 @@ typedef enum {
#define ESP_ERR_HTTP_INVALID_TRANSPORT (ESP_ERR_HTTP_BASE + 5) /*!< There are no transport support for the input scheme */
#define ESP_ERR_HTTP_CONNECTING (ESP_ERR_HTTP_BASE + 6) /*!< HTTP connection hasn't been established yet */
#define ESP_ERR_HTTP_EAGAIN (ESP_ERR_HTTP_BASE + 7) /*!< Mapping of errno EAGAIN to esp_err_t */
#define ESP_ERR_HTTP_CONNECTION_CLOSED (ESP_ERR_HTTP_BASE + 8) /*!< Read FIN from peer and the connection closed */
/**
* @brief Start a HTTP session