View Issue Details

IDProjectCategoryView StatusLast Update
0001432libmicrohttpdexternal APIpublic2009-02-08 21:20
Reporterepienbro Assigned ToChristian Grothoff Due Date
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product VersionGit master 
Summary0001432: Add support to catch error messages in MHD_start_daemon()
DescriptionHi,

While experimenting with libmicrohttpd I found out that for some reason, the function MHD_start_daemon() would always return NULL. After some further investigation I've found out it failed because I tried to bind port 80 as a normal user (which is denied on Linux environments).

I wondered if it was possible to add a new parameter to the function MHD_start_daemon: char **errmsg. If this is non-NULL, libmicrohttpd can put a more detailed error message there, so the user can be informed about the exact cause of the failure.
TagsNo tags attached.

Activities

Christian Grothoff

2008-11-16 01:52

manager   ~0003740

You need to run configure with

--enable-messages

and pass MHD_USE_DEBUG as an option. Then an appropriate error message would have been printed to stderr.

epienbro

2008-11-16 23:31

reporter   ~0003744

Printing error messages to stderr isn't of any use in GUI applications..

Christian Grothoff

2008-12-06 21:29

manager   ~0003751

Fixed in SVN 7991.

Issue History

Date ModifiedUsernameFieldChange
2008-10-28 07:55epienbroNew Issue
2008-11-16 01:52Christian GrothoffNote Added: 0003740
2008-11-16 23:31epienbroNote Added: 0003744
2008-11-17 21:13Christian GrothoffStatusnew => assigned
2008-11-17 21:13Christian GrothoffAssigned To => Christian Grothoff
2008-12-06 21:29Christian GrothoffStatusassigned => resolved
2008-12-06 21:29Christian GrothoffResolutionopen => fixed
2008-12-06 21:29Christian GrothoffNote Added: 0003751
2009-02-08 21:20Christian GrothoffStatusresolved => closed
2013-05-06 10:52Christian GrothoffCategoryAPI => libmicrohttpd API
2024-01-21 12:24Christian GrothoffCategorylibmicrohttpd API => external API