> use gevent plugin.
> gevent version 1.02b
> uwsgi version 1.2
> python version 2.5.4
>
> uwsgi conf:
> <uwsgi id='hello'>
>         <http-socket>0.0.0.0:8888</http-socket>
>         <loop>gevent</loop>
>         <async>1000</async>
>         <pythonpath>/opt/webapp/web_center</pythonpath>
>         <module>hello</module>
>         <master>true</master>
>         <workers>2</workers>
>         <enable-threads>true</enable-threads>
>         <listen>100000</listen>
>         <daemonize>/opt/webapp/web_center/hello.log</daemonize>
>         <pidfile>/opt/webapp/web_center/hello.pid</pidfile>
>         <cpu-affinity>1</cpu-affinity>
>         <max-requests>50000</max-requests>
>         <logdate>true</logdate>
>         <buffer-size>65536</buffer-size>
>         <reload-mercy>10</reload-mercy>
>         <auto-snapshot>true</auto-snapshot>
>         <reload-on-exception>true</reload-on-exception>
>     </uwsgi>
>
> when i reload my app by --reload,some other client requesting get an
> error:
> IOError: ('http protocol error', 0, 'got a bad status line', None)
>
> it looks reload-mercy not work.i just want to restart my app smoothly like
> nginx,what should i do?
>

There is (currently) no way to graceful reload in plain-async mode. But
you are using the gevent loop engine, and finding a way to destroy
greenlet should be easy.

I am about to add support for multiple sockets in the gevent plugin, maybe
i will be able to address that too.

Can you fill a ticket in the wiki ? But report it as a gevent plugin problem.
-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to