View Issue Details

IDProjectCategoryView StatusLast Update
0001901libmicrohttpdexternal APIpublic2011-11-14 23:23
Reporterpantherse Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Summary0001901: Calling MHD_stop_daemon before first client connection fails to cancel select
DescriptionWhen calling MHD_stop_daemon before a client connection is received fails to close the server connection
Steps To Reproducecall MHD_start_daemon()
call MHD_stop_daemon()

At this stage the program hangs. Attempting to connect to the server will show that the server is still active. Then the program exits.
TagsNo tags attached.

Activities

Christian Grothoff

2011-11-13 14:13

manager   ~0004908

I've added a testcase for this (SVN 18125), and it passes just fine on my system (src/testcurl/test_start_stop.c). Can you please run that testcase on your system (to see if I wrote the correct test)? If it fails there, I'd really like to know what OS you are running and maybe get a trace from gdb when the process is hanging and an strace.

Thanks!

pantherse

2011-11-13 21:41

reporter   ~0004909

It appears that the issue is with the 0.9.9 release that's available in the download page. For reference I have an Intel Mac 10.5.8

Christian Grothoff

2011-11-14 14:27

manager   ~0004911

Could you please try with a more recent release (0.9.16/SVN HEAD)?

pantherse

2011-11-14 20:53

reporter   ~0004914

I checked out https://gnunet.org/svn/libmicrohttpd@18138 and things are still working.

pantherse

2011-11-14 20:59

reporter   ~0004915

I also downloaded libmicrohttpd-0.9.16 from http://mirror.team-cymru.org/gnu/libmicrohttpd/ and that's working too. Looks like I simply downloaded an older version.

Issue History

Date Modified Username Field Change
2011-11-13 09:50 pantherse New Issue
2011-11-13 14:06 Christian Grothoff Assigned To => Christian Grothoff
2011-11-13 14:06 Christian Grothoff Status new => assigned
2011-11-13 14:13 Christian Grothoff Note Added: 0004908
2011-11-13 14:13 Christian Grothoff Status assigned => feedback
2011-11-13 21:41 pantherse Note Added: 0004909
2011-11-13 21:41 pantherse Status feedback => assigned
2011-11-14 14:27 Christian Grothoff Note Added: 0004911
2011-11-14 14:27 Christian Grothoff Status assigned => feedback
2011-11-14 20:53 pantherse Note Added: 0004914
2011-11-14 20:53 pantherse Status feedback => assigned
2011-11-14 20:59 pantherse Note Added: 0004915
2011-11-14 23:23 Christian Grothoff Status assigned => closed
2011-11-14 23:23 Christian Grothoff Resolution open => no change required
2013-05-06 12:52 Christian Grothoff Category API => libmicrohttpd API
2024-01-21 13:24 Christian Grothoff Category libmicrohttpd API => external API