List Info

Thread: init_only=True but sill blocks




init_only=True but sill blocks
user name
2006-05-13 06:55:38
Hello cherrypy users,

I want to use cherrypy as WSGI application server. but can
not make cp
running without blocking. I'm runnning cherrypy 2.2.1 on
Python2.4.3/Fedora Core 3

What I did:
-----------------------------------------------------------
import cherrypy
from cherrypy._cpwsgi import wsgiApp

class HelloWorld:
-snip-

cherrypy.root = HelloWorld()

from flup.server.ajp import WSGIServer
cherrypy.server.start(init_only=True, server_class=None) #
blocked here


WSGIServer(application=wsgiApp).run()
------------------------------------------------------------
Why cherrypy.server.start blocks? please give me (an)
advice(s) !

--
TAMAGAWA Ryuji
Osaka, Japan


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

init_only=True but sill blocks
user name
2006-05-13 13:39:53
I just found the answer myself (maybe) :

I set autoreload.on to False and now init_only=True works.

Seems like a pitfall for a novice like me...

I think there should be comments on this issue in WSGI-related documents.
--
TAMAGAWA Ryuji
Osaka, Japan

On 5/13/06, dragon <gmail.com">dragan10gmail.com> wrote:

Hello cherrypy users,

I want to use cherrypy as WSGI application server. but can not make cp
running without blocking. I'm runnning cherrypy 2.2.1 on
Python2.4.3/Fedora Core 3

What I did:
-----------------------------------------------------------
import cherrypy
from cherrypy._cpwsgi import wsgiApp

class HelloWorld:
-snip-

cherrypy.root = HelloWorld()

from flup.server.ajp import WSGIServer
cherrypy.server.start(init_only=True, server_class=None) # blocked here


WSGIServer(application=wsgiApp).run()
------------------------------------------------------------
Why cherrypy.server.start blocks? please give me (an) advice(s) !

--
TAMAGAWA Ryuji
Osaka, Japan



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users&quot; group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )