[mod_python] Problems with mp_request.read(length)

Graham Dumpleton grahamd at dscpl.com.au
Thu May 18 17:07:10 EDT 2006


I'd suggest you upgrade to 3.2.8 before going any further. There was
various fixes done to FieldStatorage related to large files in it.

On 19/05/2006, at 6:38 AM, Alexis Marrero wrote:

> Apache 2.0.54
> mod_python 3.1.4
>
> I would suggest that you try to read a  field for which you know  
> its content length put it in a file and md5 the original data and  
> the one you get by the read().
>
> /amn
> On May 18, 2006, at 4:37 PM, Graham Dumpleton wrote:
>
>>
>> On 19/05/2006, at 4:40 AM, Alexis Marrero wrote:
>>
>>> All,
>>>
>>> I have been experimenting with mod_python.util.FieldStorage() and  
>>> changing it so it will recognize and use Content-Length for a  
>>> particular field.
>>>
>>> I noticed that if I make a call to req.read(length) where length  
>>> is greater than 65646 the data is corrupted.  You can try  
>>> different numbers and find what the boundary exactly is for your  
>>> system.  It is a very weird error. Using req.readline(length)  
>>> would behave perfectly (assuming there are no new lines in the  
>>> data).
>>>
>>> Does anyone has an idea why this could happen?
>>
>> Can you state which version of mod_python and Apache you are using.
>>
>> Graham



More information about the Mod_python mailing list