Re: Fixed: Truncated uploads in mod_perl 1 from FF2.0/Win

2007-04-15 Thread Joe Schaefer
Adam Nash [EMAIL PROTECTED] writes:

 Hello, not long ago I ran into the bug described in these links:

 https://bugzilla.mozilla.org/show_bug.cgi?id=356470
 https://bugzilla.mozilla.org/show_bug.cgi?id=369414
 http://mail-archives.apache.org/mod_mbox/httpd-apreq-dev/200701.mbox/ajax/[EMAIL
  PROTECTED]

 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



Re: Error Building libapreq2.08

2007-04-15 Thread Joe Schaefer
Jonathan Vanasco [EMAIL PROTECTED] writes:

 I encountered an error building libapreq2.08

 I posted it on the mp list when I thought it was perl related, but the issue
 seems to be in the C code , so i'm reposting here.

 I'm running osx 10.4.9

What optimization flags are you using?  You may need -O0 on osx.

-- 
Joe Schaefer



Re: Error Building libapreq2.08

2007-04-15 Thread Jonathan Vanasco


On Apr 15, 2007, at 9:22 AM, Joe Schaefer wrote:


Jonathan Vanasco [EMAIL PROTECTED] writes:


I encountered an error building libapreq2.08

I posted it on the mp list when I thought it was perl related, but  
the issue

seems to be in the C code , so i'm reposting here.

I'm running osx 10.4.9


What optimization flags are you using?  You may need -O0 on osx.


Makefile had:

CFLAGS = -g -O2 -fno-strict-aliasing
CXXFLAGS = -g -O2

I tried it as -O0, no luck

Any other  suggestions?




// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -

| SyndiClick.com
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -

|  FindMeOn.com - The cure for Multiple Web Personality Disorder
|  Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -

|  RoadSound.com - Tools For Bands, Stuff For Fans
|  Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -





Re: Error Building libapreq2.08

2007-04-15 Thread Joe Schaefer
Jonathan Vanasco [EMAIL PROTECTED] writes:

 It makes little sense to me either.

 I think everything pretty much works if i install, except for uploads
 which seem to cause a segfault or just crash.

What compiler version are you using?

-- 
Joe Schaefer