2009/7/1 brendon <[email protected]>:
>
> Thanks Amand that makes sense. Is it possible to reduce the number of
> threads in the flups source code? Because the processor is embedded
> and only 200MHz 32bit.

Looks like it is possible by monkey patching web.wsgi.runfcgi. Add the
following code to your application.

def runfcgi(func, addr=('localhost', 8000)):
    """Runs a WSGI function as a FastCGI server."""
    import flup.server.fcgi as flups
    return flups.WSGIServer(func, multiplexed=True, bindAddress=addr,
maxThreads=10).run()

web.wsgi.runfcgi = runfcgi

Anand

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to