So... I feel like an idiot and like I'm missing something...

How do I serve more than one request at a time with lighttpd and
web.py?  When I make two requests to my server, the one waits until
the other is done before starting.  What fundamental thing am I
missing?

Thanks,

Matt


Here's code.py:
--------------------------------------------------
#!/usr/bin/env python
import web
import time
urls = (
        '/(.*?)', 'hello'
)
app = web.application(urls, globals())
class hello:
        def GET(self, name):
                time.sleep(20)
                return str(time.time())
if __name__ == '__main__':
        app.run()
--------------------------------------------------

Here's lighttpd.conf
--------------------------------------------------
server.document-root       = "/home/lighttpd/www/"
fastcgi.server = ( "/code.py" =>
((
        "socket" => "/tmp/fastcgi.socket",
        "bin-path" => "/home/lighttpd/webpy/code.py",
        "max-procs" => 50,
        "bin-environment" => (
                "REAL_SCRIPT_NAME" => ""
        ),
        "check-local" => "disable"
))
)
url.rewrite-once = (
  "^/favicon.ico$" => "/static/favicon.ico",
  "^/static/(.*)$" => "/static/$1",
  "^/(.*)$" => "/code.py/$1"
)
--------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
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