But do I still have to yield in the case I want to do post processing after response sent to the client?
On Tue, Sep 2, 2014 at 9:56 PM, Roberto De Ioris <[email protected]> wrote: > > > Sorry I send the message without finishing. I am confused of the yield > > for > > such a simple example is required for the gevent loop or if the use of > the > > return will now block... > > > > I understand that if I want to do post processing after I write data to > > the > > client I would yield but if no post processing does the return block the > > IO Loop? > > > > thanks > > > You do not need to think about "yield" when in gevent mode. All is > transparent. Whenever you execute a blocking operation (like sending data > to the client) uWSGI will automatically call gevent primitives (and > eventually switch to another greenlet) > > > > > -- > Roberto De Ioris > http://unbit.it > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
