View Issue Details

IDProjectCategoryView StatusLast Update
319WADFMicro HTTP serverpublic24 Nov 2011 21:31
Reportermrosenquist Assigned To 
PrioritynormalSeverityminorReproducibilityrandom
Status newResolutionopen 
Product Version0.13.2 
Summary319: Restart: Occasionally the port is not released before the web-server starts again
DescriptionRestart: Occasionally the port is not released before the web-server starts again

Recommend increasing the sleep time to 3 seconds
TagsNo tags attached.
Attached Files
wadf-httpd.patch-319 (2,171 bytes)

Activities

mrosenquist

14 Jan 2010 09:07

reporter   ~320

Increasing the sleep time did not make a difference.
There seem to be a discrepancy in how socket_create_listen works and httpd server binds to a port.

In cases were the port was busy with incoming request while the httpd server is closing the httpd server will be able to bind, where socket_create_listen() will report the port as busy.

To replicate refresh a page with a large number of external elements and then restart the httpd server using wadf-http restart

mrosenquist

14 Jan 2010 09:09

reporter   ~321

While this issue is quite minor and rare, when I does occur it is quite disruptive.

Patch acctached

timj

24 Nov 2011 21:31

manager   ~417

If I understand it right, your patch will force the restart to fail, if we know it was already running on that port?
Sounds reasonable.

Issue History

Date Modified Username Field Change
13 Jan 2010 13:30 mrosenquist New Issue
14 Jan 2010 09:07 mrosenquist Note Added: 320
14 Jan 2010 09:09 mrosenquist Note Added: 321
14 Jan 2010 09:09 mrosenquist File Added: wadf-httpd.patch-319
24 Nov 2011 21:31 timj Note Added: 417