mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/esp_http_server_doc' into 'master'
esp_http_server: Update documentation for custom close callback [GitHub PR] Closes IDFGH-6279 See merge request espressif/esp-idf!16087
This commit is contained in:
commit
e778006546
@ -206,6 +206,9 @@ typedef struct httpd_config {
|
||||
* Called when a session is deleted, before freeing user and transport contexts and before
|
||||
* closing the socket. This is a place for custom de-init code common to all sockets.
|
||||
*
|
||||
* The server will only close the socket if no custom session closing callback is set.
|
||||
* If a custom callback is used, `close(sockfd)` should be called in here for most cases.
|
||||
*
|
||||
* Set the user or transport context to NULL if it was freed here, so the server does not
|
||||
* try to free it again.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user