> W dniu 11.01.2011 00:36, [email protected] pisze: >> Hello Åukasz, >> >> I know and used it, but I want to compare performance just with >> by directly execugin code in running script. I know that gevent has so >> ability, so I think uwsgi also may have it and asked about it. >> > > You can certainly create a generator with a yield. > This allows you to return the result before the end of the request. > However, it does not disconnect. > > Roberto certainly adds to my two cents. > >
This is the "ortodox" way to do it. But i suppose he want to completely close the client connection. In this case you can use the uwsgi.disconnect() api function that will close the connection and continue its working. The only problem is that i have never tested it with async mode so i have no idea of what could happen :) -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
