Ticket #22 (new enhancement)

Opened 1 year ago

Please support non-threading non-forking operation

Reported by: trac Assigned to: asaddi
Priority: minor Milestone:
Component: flup.server Version:
Keywords: Cc: tv@inoi.fi

Description

Hi. I want to use lighttpd to manage my flup-using fcgi processes. Even if I use flup.server.fcgi.WSGIServer(app, multithreaded=False), flup will still use threads, and use roughly 4 times as much memory as it should. I wish I could just tell it to process one request at a time in the same process, no threads.

Attached is a suggested patch that basically copy-pastes fcgi.py, just like fcgi_fork.py did. Some refactoring would probably be nice.

I wish there were unit tests.

My email address is tv@inoi.fi.

Attachments

singleserver.diff (12.3 kB) - added by trac on 05/19/07 07:04:33.
Non-threading non-forking variant of fastcgi

Change History

05/19/07 07:04:33 changed by trac

  • attachment singleserver.diff added.

Non-threading non-forking variant of fastcgi