List Info

Thread: wsgiref questions




wsgiref questions
user name
2006-12-21 22:04:55

Guido van Rossum wrote:
> We decided to add chunking encoding to our own server,
> it wasn't all that hard. What's the business of only
> doing it for certain status codes?

Less overhead if the response has no entity or a small one. In my experience, 200, 203 and 206 are the only ones that have large enough response-bodies to bother. And since there's no spec for a WSGI app to tell a WSGI server to chunk (because chunking support isn't mandatory), it seemed best for a generic server.


Robert Brewer
System Architect
Amor Ministries
fumanchuamor.org

wsgiref questions
user name
2006-12-21 23:05:11
Hm, but what would you do with a response not in that list
that didn't
have a content-length? You'd have to close the persistent
connection.
We're committed to keep the persistent connection open at
all times
because there's a special Googly thing at the other end.

On 12/21/06, Robert Brewer <fumanchuamor.org> wrote:
>
>
>
> Guido van Rossum wrote:
>  > We decided to add chunking encoding to our own
server,
>  > it wasn't all that hard. What's the business of
only
>  > doing it for certain status codes?
>
>  Less overhead if the response has no entity or a small
one. In my
> experience, 200, 203 and 206 are the only ones that
have large enough
> response-bodies to bother. And since there's no spec
for a WSGI app to tell
> a WSGI server to chunk (because chunking support isn't
mandatory), it seemed
> best for a generic server.
>
>
>  Robert Brewer
>  System Architect
>  Amor Ministries
>  fumanchuamor.org


-- 
--Guido van Rossum (home page: http://www.python.org/~
guido/)
_______________________________________________
Web-SIG mailing list
Web-SIGpython.org
Web SIG: http://www.python.
org/sigs/web-sig
Unsubscribe: http://mail.python.org/mailman/options/web-sig/bo
nd%40yahoo.com
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )