A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-March/124920.html below:

[Python-Dev] wsgi validator with asynchronous handlers/servers

[Python-Dev] wsgi validator with asynchronous handlers/servers [Python-Dev] wsgi validator with asynchronous handlers/serversPJ Eby pje at telecommunity.com
Sat Mar 23 21:27:31 CET 2013
On Sat, Mar 23, 2013 at 3:05 PM, Luca Sbardella
<luca.sbardella at gmail.com> wrote:
> The pseudocode above does yields bytes before start_response, but they are
> not *body* bytes, they are empty bytes so that the asynchronous wsgi server
> releases the eventloop and call back at the next eventloop iteration.
>
> I'm I misinterpreting the pep, or the wsgi validator should be fixed
> accordingly?

The validator is correct for the spec.  You *must* call
start_response() before yielding any strings at all.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4