Ticket #1465 (closed defect: fixed)

Opened 10 months ago

Last modified 6 months ago

dev-poll interface FD problem on Solaris 10 for non-root users

Reported by: mandyw Owned by: jan
Priority: normal Milestone: 1.4.19
Component: core Version: 1.4.x-svn
Severity: normal Keywords:
Cc: Blocked By:
Need User Feedback: no Blocking:

Description

When a non-root user starts Lighttpd with the event-handler set to solaris-devpoll, the CPU pegs at 100% and the log file fills up with the message:

...(server.c.1429) fdevent_poll failed: Invalid argument

This is the same problem as that reported and fixed in ticket #372 with the exception that this is for non-root users. There are two code paths for setting max_conns in server.c, the fix for 372 was applied only to the code path for the root user, but it's also relevant for non-root users. The fix is to add the line:

if (rlim.rlim_cur > 10) rlim.rlim_cur -= 10;

Just after the call to setrlimit in the else clause of the if (i_am_root) condition.

Attachments

Change History

Changed 6 months ago by stbuehler

  • status changed from new to closed
  • resolution set to fixed

Should be fixed in [2082] for #1562.
Testing/feedback is welcome ;-)

Add/Change #1465 (dev-poll interface FD problem on Solaris 10 for non-root users)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.