View Issue Details

IDProjectCategoryView StatusLast Update
0003751libmicrohttpdinternal event looppublic2021-09-02 17:54
Reportermatt.holiday Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityrandom
Status closedResolutionfixed 
OSLinux 
Product Version0.9.39 
Target Version0.9.40Fixed in Version0.9.40 
Summary0003751: check against FD_SETSIZE for control pipes ignores MHD_USE_EPOLL_LINUX_ONLY
DescriptionIn a couple places, checks against FD_SETSIZE are ignored if MHD_USE_POLL is set but don't take into account MHD_USE_EPOLL_LINUX_ONLY
Steps To ReproduceStartup with too many sockets in use in the same process; found in 0.9.32 but the code hasn't changed since then
Additional InformationShould be a trivial fix

In src/libmicrohttpd/daemon.c, look for the error string "file descriptor for worker control pipe exceeds maximum value"

3460c3460
< if ( (0 == (flags & MHD_USE_POLL)) &&
---
> if ( (0 == (flags & (MHD_USE_POLL | MHD_USE_EPOLL_LINUX_ONLY))) &&
3992c3992
< if ( (0 == (flags & MHD_USE_POLL)) &&
---
> if ( (0 == (flags & (MHD_USE_POLL | MHD_USE_EPOLL_LINUX_ONLY))) &&
TagsNo tags attached.

Activities

Christian Grothoff

2015-04-03 12:29

manager   ~0009063

Fixed as suggested in SVN 35492.

Christian Grothoff

2021-09-02 17:54

manager   ~0018200

Fix committed to master branch.

Related Changesets

libmicrohttpd: master 570042a1

2015-04-03 14:29

Christian Grothoff


Details Diff
fix 0003751 Affected Issues
0003751
mod - ChangeLog Diff File
mod - src/include/microhttpd.h Diff File
mod - src/microhttpd/daemon.c Diff File

Issue History

Date Modified Username Field Change
2015-04-02 19:44 matt.holiday New Issue
2015-04-03 12:24 Christian Grothoff Assigned To => Christian Grothoff
2015-04-03 12:24 Christian Grothoff Status new => assigned
2015-04-03 12:29 Christian Grothoff Note Added: 0009063
2015-04-03 12:29 Christian Grothoff Status assigned => resolved
2015-04-03 12:29 Christian Grothoff Fixed in Version => 0.9.40
2015-04-03 12:29 Christian Grothoff Resolution open => fixed
2015-04-03 12:29 Christian Grothoff Target Version => 0.9.40
2015-04-07 00:43 Christian Grothoff Status resolved => closed
2021-09-02 17:54 Christian Grothoff Changeset attached => libmicrohttpd master 570042a1
2021-09-02 17:54 Christian Grothoff Note Added: 0018200
2024-01-21 13:24 Christian Grothoff Category libmicrohttpd internal select => internal event loop