mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-22 17:02:25 +00:00
esp_http_server: Add linger in httpd_config_t
Closes: https://github.com/espressif/esp-idf/issues/9514
This commit is contained in:
@@ -40,6 +40,8 @@ initializer that should be kept in sync
|
||||
.global_user_ctx_free_fn = NULL, \
|
||||
.global_transport_ctx = NULL, \
|
||||
.global_transport_ctx_free_fn = NULL, \
|
||||
.enable_so_linger = false, \
|
||||
.linger_timeout = 0, \
|
||||
.open_fn = NULL, \
|
||||
.close_fn = NULL, \
|
||||
.uri_match_fn = NULL \
|
||||
@@ -185,6 +187,9 @@ typedef struct httpd_config {
|
||||
*/
|
||||
httpd_free_ctx_fn_t global_transport_ctx_free_fn;
|
||||
|
||||
bool enable_so_linger; /*!< bool to enable/disable linger */
|
||||
int linger_timeout; /*!< linger timeout (in seconds) */
|
||||
|
||||
/**
|
||||
* Custom session opening callback.
|
||||
*
|
||||
|
Reference in New Issue
Block a user