httpd_sess_set_ctx() calls end on current socket

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

httpd_sess_set_ctx() calls end on current socket

Postby PeterR » 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?
& I also believe that IDF CAN should be fixed.

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: httpd_sess_set_ctx() calls end on current socket

Postby PeterR » Wed Sep 02, 2020 8:41 pm

Ok, plausibly IDF wants to end the old context because I have set a new one. Documentation update then.
& I also believe that IDF CAN should be fixed.

Who is online

Users browsing this forum: Assasinsareus and 107 guests