Page 1 of 1

httpd_sess_set_ctx() calls end on current socket

Posted: Fri Aug 28, 2020 2:03 pm
by PeterR
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?

Re: httpd_sess_set_ctx() calls end on current socket

Posted: Wed Sep 02, 2020 8:41 pm
by PeterR
Ok, plausibly IDF wants to end the old context because I have set a new one. Documentation update then.