[Web-SIG] Is the size argument to the input-stream read method optional?

James Y Knight foom at fuhm.net
Wed Dec 28 16:34:51 CET 2005


On Dec 21, 2005, at 10:20 AM, Jim Fulton wrote:

> Ian Bicking wrote:
>
>> Jim Fulton wrote:
>>
>>
>>> The PEP is unclear on this and should be clarified, IMO.
>>>
>>
>>
>> My experience in using implementations is many servers do not require
>> the read size argument (they don't give a TypeError), but they block
>> without it, or if you read past CONTENT_LENGTH.  So it should  
>> probably
>> be required in the spec, since it's required in practice.
>>
>
> Does this constitude a decision?  Can somebody update the PEP?
> I am able and willing to if requested to. :)

Surely that's a bug in the server, not the spec? Indeterminate length  
uploads (with transfer-encoding chunked) are allowed by HTTP, after  
all. The CGI spec explicitly rejects such requests, but WSGI doesn't  
seem to.

James



More information about the Web-SIG mailing list