[Web-SIG] Sketching a WSGI 2-to-1 adapter with greenlets
P.J. Eby
pje at telecommunity.com
Sat Sep 19 07:06:13 CEST 2009
At 02:08 AM 9/19/2009 +0200, Armin Ronacher wrote:
>greenlets are one solution, but I don't think there are any applications
>out there using write() that are worth supporting in WSGI 2.0. Such
>applications should rather use an internal buffer and write to that.
If an internal buffer was suitable to their application, they
shouldn't have been using write() in the first place; it would
suffice to "return [buffer]".
Unfortunately, many people seem to think that yield and write() are
for returning pieces of a normal web page, rather than for doing
server push and streaming files that are too big to go all-at-once.
More information about the Web-SIG
mailing list