[SOLVED] ESP32-S3 IDF 5.2.x - httpd setting socket options SO_REUSE_ADDR?
Posted: Fri May 31, 2024 5:23 am
Hey all,
I have a working serial->UDP application and I recently added an HTTPD server for some user config... and that works too -- EXCEPT....
While the httpd server is running, I'm guessing it set up it's bind with options to NOT use SO_REUSEADDR.
So now, my UDP sending functions get the "Address already in use" errno 112 when trying to bind (SRCport:32768, DESTport:4000) (and it's TX only. no RX)
I'm guessing I have to somehow set the HTTP server to allow SO_REUSEADDR -- but how?
Is this an httpd_config.open_fn = <someFunction> operation or something else?
Thanks,
-Ben
I have a working serial->UDP application and I recently added an HTTPD server for some user config... and that works too -- EXCEPT....
While the httpd server is running, I'm guessing it set up it's bind with options to NOT use SO_REUSEADDR.
So now, my UDP sending functions get the "Address already in use" errno 112 when trying to bind (SRCport:32768, DESTport:4000) (and it's TX only. no RX)
I'm guessing I have to somehow set the HTTP server to allow SO_REUSEADDR -- but how?
Is this an httpd_config.open_fn = <someFunction> operation or something else?
Thanks,
-Ben