Add options for esp_http_client and esp_websocket_client to support keepalive

This commit is contained in:
Shubham Kulkarni
2021-01-11 16:24:48 +05:30
committed by yuanjm
parent 7201411f49
commit 985de73e6d
4 changed files with 38 additions and 2 deletions

View File

@@ -123,6 +123,10 @@ typedef struct {
bool is_async; /*!< Set asynchronous mode, only supported with HTTPS for now */
bool use_global_ca_store; /*!< Use a global ca_store for all the connections in which this bool is set. */
bool skip_cert_common_name_check; /*!< Skip any validation of server certificate CN field */
bool keep_alive_enable; /*!< Enable keep-alive timeout */
int keep_alive_idle; /*!< Keep-alive idle time. Default is 5 (second) */
int keep_alive_interval; /*!< Keep-alive interval time. Default is 5 (second) */
int keep_alive_count; /*!< Keep-alive packet retry send count. Default is 3 counts */
} esp_http_client_config_t;
/**