]> granicus.if.org Git - esp-idf/commit
esp_http_server : Allow binding to same address and port upon restarting server witho...
authorAnurag Kar <anurag.kar@espressif.com>
Mon, 29 Apr 2019 13:16:20 +0000 (18:46 +0530)
committerbot <bot@espressif.com>
Thu, 2 May 2019 05:29:38 +0000 (05:29 +0000)
commitffad8b27a36ad5f069b64c0aa64dffec955d0621
tree79824d9904d2fcb952ce75541abe1ae471208ee0
parentc5f58d11e86eb38f7dddf215179f59f179dee02e
esp_http_server : Allow binding to same address and port upon restarting 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 https://github.com/espressif/esp-idf/issues/3381
components/esp_http_server/src/httpd_main.c