Ticket #20 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

Flup doesn't work on Solaris

Reported by: trac Assigned to: asaddi
Priority: major Milestone:
Component: flup.server Version: 0.5
Keywords: solaris Cc:

Description

When trying to use Flup on Solaris to deploy a Django application, I get:

   File "/users/home/basil/local/flup/server/fcgi_fork.py", line 100, in __init__
   maxProcs = resource.getrlimit(resource.RLIMIT_NPROC)[0]
AttributeError: 'module' object has no attribute 'RLIMIT_NPROC'

This is because Solaris getrlimit() doesn't have RLIMIT_NPROC (maximum number of simultaneous processes per user id), a non-standard rlimit. I modified fcgi_fork.py to catch the exception if RLIMIT_NPROC is not available and merely use RLIMIT_NOFILE to set FCGI_MAX_CONNS. This works on SunOS 5.11 snv_56.

Regards, Basil Crow

Change History

05/16/07 21:08:09 changed by trac

I can't attach a file via trac (it yields an error). The patch is at:

http://basilcrow.com/flup-solaris.txt

05/17/07 09:09:32 changed by asaddi

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

Committed in r2349, thanks!

09/11/07 15:25:47 changed by asaddi

  • milestone deleted.

Milestone flup-0.6 deleted