httpd_sess_set_ctx() calls end on current socket
Posted: Fri Aug 28, 2020 2:03 pm
Using IDF 4.1, SHA-1: 84b51781c80740fda92784dafcfc96c13b0d8b66
Calling httpd_sess_set_ctx((httpd_handle_t handle, int sockfd, , httpd_free_ctx_fn_t free_fn) with details of another socket from within an httpd handler causes the httpd_free_ctx_fn_t function to be called for the current (being handled) socket.
Why is this and how can I stop it?
Calling httpd_sess_set_ctx((httpd_handle_t handle, int sockfd, , httpd_free_ctx_fn_t free_fn) with details of another socket from within an httpd handler causes the httpd_free_ctx_fn_t function to be called for the current (being handled) socket.
Why is this and how can I stop it?