Juergen Brendel wrote:
> Hello!
> 
> On Tue, 2007-09-04 at 20:06 -0500, Ian Bicking wrote:
>>> I thought that this indicated that iteration MUST be supported by the
>>> server? What did I miss?
>> Mmm... I guess you are right.  Hm... well, then I guess there may be a 
>> problem in the server.  Which server are you using, paste.httpserver?
> 
> Yes, I think that's the one. See the lines from the code snipped I had
> sent:
> 
>>         if __name__ == '__main__':
>>             from paste import httpserver
>>             httpserver.serve(app, host='127.0.0.1', port='8081')
> 
> 
>> I don't know if there's any support under WSGI for streamed content like 
>> that.
> 
> Ouch. This means I have to rethink a couple of things then... Hm. Could
> you please point out which servers tend to block - in your experience -
> if you read past the end of the stream?

The only ones that don't block are either not HTTP servers (e.g., 
paste.fixture.TestApp), or are servers that limit the input using 
CONTENT_LENGTH (I believe httpserver does that).

There might be something in HTTP/1.1 that allows for request bodies of 
unknown length, but I'm not really sure.  This wouldn't be handled at 
the WSGI level, though.


-- 
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
             : Write code, do good : http://topp.openplans.org/careers

_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to