New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP listen socket not closed in httpd_stop() leading to bind error 112 (EADDRINUSE) (IDFGH-1060) #3381
Comments
github-actions
bot
changed the title
HTTP listen socket not closed in httpd_stop() leading to bind error 112 (EADDRINUSE)
HTTP listen socket not closed in httpd_stop() leading to bind error 112 (EADDRINUSE) (IDFGH-1060)
Apr 28, 2019
@henrix |
@anurag-kar Thanks a lot! |
igrr
pushed a commit
that referenced
this issue
May 6, 2019
…ing server without delay Issue : Restarting the server without 30sec delay between httpd_stop() and httpd_start() causes EADDRINUSE error Resolution : Use setsockopt() to enable SO_REUSEADDR on listener socket Closes #3381
igrr
pushed a commit
that referenced
this issue
May 10, 2019
…ing server without delay Issue : Restarting the server without 30sec delay between httpd_stop() and httpd_start() causes EADDRINUSE error Resolution : Use setsockopt() to enable SO_REUSEADDR on listener socket Closes #3381
trombik
pushed a commit
to trombik/esp-idf
that referenced
this issue
Aug 9, 2019
…ing server without delay Issue : Restarting the server without 30sec delay between httpd_stop() and httpd_start() causes EADDRINUSE error Resolution : Use setsockopt() to enable SO_REUSEADDR on listener socket Closes espressif#3381
felixcollins
added a commit
to IntranelConsulting/esp-idf
that referenced
this issue
Feb 12, 2020
wujiangang
pushed a commit
to espressif/ESP8266_RTOS_SDK
that referenced
this issue
May 6, 2023
…erver without delay Issue : Restarting the server without 30sec delay between httpd_stop() and httpd_start() causes EADDRINUSE error Resolution : Use setsockopt() to enable SO_REUSEADDR on listener socket Closes espressif/esp-idf#3381
wujiangang
pushed a commit
to espressif/ESP8266_RTOS_SDK
that referenced
this issue
May 6, 2023
…erver without delay Issue : Restarting the server without 30sec delay between httpd_stop() and httpd_start() causes EADDRINUSE error Resolution : Use setsockopt() to enable SO_REUSEADDR on listener socket Closes espressif/esp-idf#3381
loganfin
pushed a commit
to Lumenaries/esp_http_server
that referenced
this issue
Apr 23, 2024
…ing server without delay Issue : Restarting the server without 30sec delay between httpd_stop() and httpd_start() causes EADDRINUSE error Resolution : Use setsockopt() to enable SO_REUSEADDR on listener socket Closes espressif/esp-idf#3381
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I've created a web app based on the example http_server.
httpd is started and stopped via an external toggle switch.
If starting and stopping httpd without opening the website in a browser, everything is fine.
However, if I open the website (and close it again) and restart httpd, I get bind error 112 (EADDRINUSE).
It seems that the listen socket is not closed properly if the website was opened once.
SO_REUSEADDR is enabled in sdkconfig.
Is there a way to get the listen socket via httpd API to close it properly or is something else needed?
Thanks!
The text was updated successfully, but these errors were encountered: