httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <>
Subject Re: Fixed: Truncated uploads in mod_perl 1 from FF2.0/Win
Date Sun, 15 Apr 2007 10:54:54 GMT
Adam Nash <> writes:

> Hello, not long ago I ran into the bug described in these links:
> After a lot of investigation, I'm pretty sure I've found what's happening.  
> The problem is not quite the behavior described in the linked apache mailing 
> list message, "What's happening is that occasionally, we get a 0 byte 
> payload".  Firefox 2 for Windows is often sending single byte payloads (which 
> is really dumb, but evidently should be allowable behavior), but libapreq is 
> ignoring that single byte when it happens to be character 0A (a linefeed).  

Right, since it's the start of a boundary.  I think the best way
to fix this is to do what php does and add a loop into fill_buffer
so it completely fills the buffer instead of doing a single read.
Php uses our multipart code for handling uploads, and that's probably
why they haven't seen this bug crop up.

Joe Schaefer

View raw message