View Issue Details

IDProjectCategoryView StatusLast Update
0005653libmicrohttpdlibmicrohttpd APIpublic2019-03-18 08:37
ReportersilvioprogAssigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status newResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0005653: [FEATURE REQUEST] Event listener to reuse the builtin MHD's thread / loop
DescriptionHello.

It would be nice if MHD could allow something like this:

  d = MHD_start_daemon (MHD_USE_AUTO_INTERNAL_THREAD, 8080, NULL, NULL, &ahc_cb, NULL,
                                              MHD_OPTION_EVENT_LISTENER, &my_event, my_closure,
                                              MHD_OPTION_END);


this way, the "my_event()" would be triggered within internal MHD thread by its loop.

It would be useful:

- to expire sessions without using loop/mutex in the application thread
- to notify external classes that the server is live
- to reuse the internal library loop instead of the thread of VCL applications when their loop (idle) isn't available
TagsNo tags attached.

Activities

silvioprog

2019-03-18 08:37

developer   ~0014216

Possible better name for the option:

  MHD_OPTION_IDLE

Issue History

Date Modified Username Field Change
2019-03-16 18:51 silvioprog New Issue
2019-03-16 18:54 silvioprog Summary [FEATURE REQUEST] Event listener to reuse the MHD's thread / loop => [FEATURE REQUEST] Event listener to reuse the builtin MHD's thread / loop
2019-03-18 08:37 silvioprog Note Added: 0014216