2009/1/28 gert <[email protected]>:
>
> revision 1167 without patch small file read(l)
>
> STRING=%s 49311
>
> TYPE=%s <class 'bytes'>
>
> DATA=%s b'------------Ef1Ef1GI3ei4Ef1ei4ei4KM7gL6GI3\\r\\nContent-
> Disposition: form-data; name="Filename"\\r\\n\\r\\nfile.txt\\r\
> \n------------Ef1Ef1GI3ei4Ef1ei4ei4KM7gL6GI3\\r\\nContent-Disposition:
> form-data; name="Filedata"; filename="file.txt"\\r\\nContent-Type:
> application/octet-stream\\r\\n\\r\\n\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\
> \x00\\rIHDR\\x00\\x00\\x02\\x80\\x00\\x00\\x01\\x89\\x08\\x02\\x00\
> \x00\\x00\\x95H\\x15!\\x00\\x00\\x00\\x01...
>
> STRING=%s '------------Ef1Ef1GI3ei4Ef1ei4ei4KM7gL6GI3\\r\\nContent-
> Disposition: form-data; name="Filename"\\r\\n\\r\\nfile.txt\\r\
> \n------------Ef1Ef1GI3ei4Ef1ei4ei4KM7gL6GI3\\r\\nContent-Disposition:
> form-data; name="Filedata"; filename="file.txt"\\r\\nContent-Type:
> application/octet-stream\\r\\n\\r\\n\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\
> \x00\\rIHDR\\x00\\x00\\x02\\x80\\x00\\x00\\x01\\x89\\x08\\x02\\x00\
> \x00\\x00\\x95H\\x15!\\x00\\x00\\x00\\x01...
>
> revision 1167 without patch big file read(l)
>
> STRING=%s 186854
>
> TYPE=%s <class 'bytes'>
>
> DATA=%s b'------------gL6gL6GI3ei4GI3ae0Ef1GI3cH2gL6\\r\\nContent-
> Disposition: form-data; name="Filename"\\r\\n\\r\\nfirefox.png\\r\
> \n------------gL6gL6GI3ei4GI3ae0Ef1GI3cH2gL6\\r\\nContent-Disposition:
> form-data; name="Filedata"; filename="firefox.png"\\r\\nContent-Type:
> application/octet-stream\\r\\n\\r\\n\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\
> \x00\\rIHDR\\x00\\x00\\x02\\x82\\x00\\x00\\x01\\xe4\\x08\\x06\\x00\
> \x00\\x00\\xaa\\xb5N\\xcf\\x00\\x00\\x00\\x01sRGB\\x00\\xae\\xce\\x1c\
> \xe9\\x00\\x00\\x00\\x06bKGD\\x00\\xff\\x00\\xff\\x00\\xff\\xa0\\xbd\
> \xa7\\x93\\x00\\x00\\x00\\tpHYs\\x00\\x00\\x0b\\x13\\x00\\x00\\x0b\
> \x13\\x01\\x00\\x9a\\x9c\\x18\\x00\\x00\\x00\\x07tIME\\x07\\xd8\\n\
> \x01\\x13!\\x1f\\xdfBN\\x19\\x00\\x00\\x00\\x19tEXtComment\\x00Created
> with GIMPW\\x81\\x0e\\x17\\x00\\x00...
>
> STRING=%s '------------gL6gL6GI3ei4GI3ae0Ef1GI3cH2gL6\\r\\nContent-
> Disposition: form-data; name="Filename"\\r\\n\\r\\nfirefox.png\\r\
> \n------------gL6gL6GI3ei4GI3ae0Ef1GI3cH2gL6\\r\\nContent-Disposition:
> form-data; name="Filedata"; filename="firefox.png"\\r\\nContent-Type:
> application/octet-stream\\r\\n\\r\\n\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\
> \x00\\rIHDR\\x00\\x00\\x02\\x82\\x00\\x00\\x01\xc3\xa4\\x08\\x06\\x00\
> \x00\\x00\xc2\xaa\xc2\xb5N\xc3\x8f\\x00\\x00\\x00\\x01sRGB\\x00\xc2\xae
> \xc3\x8e\\x1c\xc3\xa9\\x00\\x00\\x00\\x06bKGD\\x00\xc3\xbf\\x00\xc3\xbf
> \\x00\xc3\xbf\\xa0\xc2\xbd\xc2\xa7\\x93\\x00\\x00\\x00\\tpHYs\\x00\
> \x00\\x0b\\x13\\x00\\x00\\x0b\\x13\\x01\\x00\\x9a\\x9c\\x18\\x00\\x00\
> \x00\\x07tIME\\x07\xc3\x98\\n\\x01\\x13!\\x1f\xc3\x9fBN\\x19\\x00\\x00\
> \x00\\x19tEXtComment\\x00Created with GIMPW\\x81\\x0e\\x17\\x00\
> \x00...
>
> revision 1167 without patch smale file read()
>
> STRING=%s 49311
>
> TYPE=%s <class 'bytes'>
>
> DATA=%s b'------------ei4Ef1Ef1Ef1gL6ae0KM7KM7GI3ae0\\r\\nContent-
> Disposition: form-data; name="Filename"\\r\\n\\r\\nfile.txt\\r\
> \n------------ei4Ef1Ef1Ef1gL6ae0KM7KM7GI3ae0\\r\\nContent-Disposition:
> form-data; name="Filedata"; filename="file.txt"\\r\\nContent-Type:
> application/octet-stream\\r\\n\\r\\n\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\
> \x00\\rIHDR\\x00\\x00\\x02\\x80\\x00\\x00\\x01\\x89\\x08\\x02\\x00\
> \x00\\x00\\x95H\\x15!\\x00\\x00\\x00\\x01sRGB\\x00\\xae\\xce\\x1c\\xe9\
> \x00\\x00\\x00\\tpHYs\\x00\\x00\\x0b\\x13\\x00\\x00\\x0b\\x13\\x01\
> \x00\\x9a\\x9c\\x18\\x00\\x00\\x00\\x07tIME\\x07\\xd8\\x01\\x01\\x12\
> \x0e1g\\x9a \\x9d\\x00\\x00\\x00\\x19tEXtComment\\x00Created with GIMPW
> \\x81\\x0e\\x17\\x00\\x00 \\x00IDATx\\xda\\xec\\xbdy\\x98\\x1d\\xd5u/\
> \xba\\xf6\\xae\\xd3\\xa7Owk\\x1e\\xba\\xa5\\...
>
>  STRING=%s '------------ei4Ef1Ef1Ef1gL6ae0KM7KM7GI3ae0\\r\\nContent-
> Disposition: form-data; name="Filename"\\r\\n\\r\\nfile.txt\\r\
> \n------------ei4Ef1Ef1Ef1gL6ae0KM7KM7GI3ae0\\r\\nContent-Disposition:
> form-data; name="Filedata"; filename="file.txt"\\r\\nContent-Type:
> application/octet-stream\\r\\n\\r\\n\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\
> \x00\\rIHDR\\x00\\x00\\x02\\x80\\x00\\x00\\x01\\x89\\x08\\x02\\x00\
> \x00\\x00\\x95H\\x15!\\x00\\x00\\x00\\x01sRGB\\x00\xc2\xae\xc3\x8e\\x1c
> \xc3\xa9\\x00\\x00\\x00\\tpHYs\\x00\\x00\\x0b\\x13\\x00\\x00\\x0b\\x13\
> \x01\\x00\\x9a\\x9c\\x18\\x00\\x00\\x00\\x07tIME\\x07\xc3\x98\\x01\
> \x01\\x12\\x0e1g\\x9a \\x9d\\x00\\x00\\x00\\x19tEXtComment\\x00Created
> with GIMPW\\x81\\x0e\\x17\\x00\\x00 \\x00IDATx\xc3\x9a\xc3\xac\xc2\xbdy
> \\x98\\x1d\xc3\x95u/\xc2\xba\xc3\xb6\xc2\xae\xc3\x93\xc2\xa7Owk\\x1e
> \xc2\xba\xc2\xa5\\x1e5K\\x08M\\x80\\x06\\x84\\x91\\x18\\x0c\\x02\\x04\
> \x18\\x0c6\\x89\\x07|c\\x07\xc3\xa7\\x05\xc3\x87\xc3\x8e\xc3\xb4n\\x9ck
> \xc2\xbf{\xc2\xbf\xc3\xb8\xc3\x9e\xc3\xaf&\xc3\x8e{qrs\xc2\xaf\\x07\
> \x92|N\xc3\xa2\\x18\\x12\\x12\\x83m\\x84\\x01\\x81\xc3\x80\\x06$\\x81\
> \x10\\x92\\x8d\\x06\\x10\\x1aZR\xc2\xab\xc2\xbb5tK\\x08\
> \x19\xc3\x94\xc3\xa3\xc2\xa9\xc3\x9a\xc3\xab\xc3\xbd\xc2\xb1\xc2\xab
> \xc3\xaa\xc3\x94<\\x9d:\xc3\x9d\xc3\xa7t\xc2\xaf\xc3\...
>
> revision 1167 without patch big file read()
>
> STRING=%s 186854
>
> TYPE=%s <class 'bytes'>
>
> DATA=%s b'------------Ij5gL6Ef1ae0Ef1Ij5ei4ei4Ef1Ij5\\r\\nContent-
> Disposition: form-data; name="Filename"\\r\\n\\r\\nfirefox.png\\r\
> \n------------Ij5gL6Ef1ae0Ef1Ij5ei4ei4Ef1Ij5\\r\\nContent-Disposition:
> form-data; name="Filedata"; filename="firefox.png"\\r\\nContent-Type:
> application/octet-stream\\r\\n\\r\\n\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\
> \x00\\rIHDR\\x00\\x00\\x02\\x82\\x00\\x00\\x01\\xe4\\x08\\x06\\x00\
> \x00\\x00\\xaa\\xb5N\\xcf\\x00\\x00\\x00\\x01sRGB\\x00\\xae\\xce\\x1c\
> \xe9\\x00\\x00\\x00\\x06bKGD\\x00\\xff\\x00\\xff\\x00\\xff\\xa0\\xbd\
> \xa7\\x93\\x00\\x00\\x00\\tpHYs\\x00\\x00\\x0b\\x13\\x00\\x00\\x0b\
> \x13\\x01\\x00\\x9a\\x9c\\x18\\x00\\x00\\x00\\x07tIME\\x07\\xd8\\n\
> \x01\\x13!\\x1f\\xdfBN\\x19\\x00\\x00\\x00\\x19tEXtComment\\x00Created
> with GIMPW\\x81\\x0e\\x17\\x00\\x00 \\x00IDATx\\xda\\xec\\x9dwx\\\\\
> \xc5\\xb9\\xff?s\\xdavI\\xab\\xde-\\xc9\\x92m\\xb9\\xe1\\n\\xb8`\\xb0\
> \xc1\\...@\\xe8%!\\x90\\x90\\x84\\x9eb\\ni\\x80\\x9b{\\x93
>
> STRING=%s '------------Ij5gL6Ef1ae0Ef1Ij5ei4ei4Ef1Ij5\\r\\nContent-
> Disposition: form-data; name="Filename"\\r\\n\\r\\nfirefox.png\\r\
> \n------------Ij5gL6Ef1ae0Ef1Ij5ei4ei4Ef1Ij5\\r\\nContent-Disposition:
> form-data; name="Filedata"; filename="firefox.png"\\r\\nContent-Type:
> application/octet-stream\\r\\n\\r\\n\\x89PNG\\r\\n\\x1a\\n\\x00\\x00\
> \x00\\rIHDR\\x00\\x00\\x02\\x82\\x00\\x00\\x01\xc3\xa4\\x08\\x06\\x00\
> \x00\\x00\xc2\xaa\xc2\xb5N\xc3\x8f\\x00\\x00\\x00\\x01sRGB\\x00\xc2\xae
> \xc3\x8e\\x1c\xc3\xa9\\x00\\x00\\x00\\x06bKGD\\x00\xc3\xbf\\x00\xc3\xbf
> \\x00\xc3\xbf\\xa0\xc2\xbd\xc2\xa7\\x93\\x00\\x00\\x00\\tpHYs\\x00\
> \x00\\x0b\\x13\\x00\\x00\\x0b\\x13\\x01\\x00\\x9a\\x9c\\x18\\x00\\x00\
> \x00\\x07tIME\\x07\xc3\x98\\n\\x01\\x13!\\x1f\xc3\x9fBN\\x19\\x00\\x00\
> \x00\\x19tEXtComment\\x00Created with GIMPW\\x81\\x0e\\x17\\x00\\x00 \
> \x00IDATx\xc3\x9a\xc3\xac\\x9dwx\\\\\xc3\x85\xc2\xb9\xc3\xbf?s
> \xc3\x9avI\xc2\xab\xc3\x9e-\xc3\x89\\x92m\xc2\xb9\xc3\xa1\\n\xc2\xb8`
> \xc2\xb0\xc3\x81\xc3\...@\xc3\xa8%!\\x90\\x90\\x84\\x9eb\\ni\\x80\\x9b
> {\\x93k\xc3\x89mh\\x8...@\\x02i\\x90\\x10z\\x0f\xc3\x85`\
> \x88\xc2\xa96\xc3\x86`0\xc3\xae\xc3\x86M.\xc2\xb2\xc3\x8aJ\xc3\x9av
> \xc3\xba\xc3\xaf\\x8f\\x95\\x84z\xc2\xb3\xc3\xac\xc3\xb0\\x83\xc3\xbd>\
> \x8f\\x1e{w\xc3\x8f\\x993\xc3\xb3\x...
>
> why does it always work when you are fiddeling with your code :-)
> PS does %s work in python 3 ?

Yes  %s works, but I screwed up syntax of line which you should have
been able to pick up and fix. :-)

The command after format string should have been a %.

I may not have duplicated problem because I thought you said 182
bytes, not 182 kbytes, so wasn't using big enough input to begin with.
Even so, unless your client was dribbling data, the fix already posted
probably wouldn't help.

Now, if that fix hasn't worked, I now really need to see the debug
from C code level. This is because I need to see the values of the
arguments being supplied to the Python resize function.

Graham

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to