Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

ap_get_brigade hangs when submitting a muitipart/form-data

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


moacir.schmidt at gmail

Feb 13, 2008, 3:03 PM

Post #1 of 2 (325 views)
Permalink
ap_get_brigade hangs when submitting a muitipart/form-data

Hi, everybody!

I'm trying to develop an 'uploader' dso module to handle file
submissions from client browsers. The code worked well on win32 but on
debian hangs with files which size is over 22k.

Debugging my component shows me that the function ap_get_brigade slows
down after two or three loop interactions.

I isolated the problem in a 'helloworld' packet as follows:

index.htm: sample submit form;
t02.c: module source code;
PIC_12930.jpg: a sample file to upload that hangs ap_get_brigade

to reproduce the problem:

1) Compile module with apxs
apxs -c t02.c
apxs -ie t02.la

2) configure httpd.conf
LoadModule helloworld_module modules/t02.so
<Location /helloworld>
SetHandler helloworld
</Location>

3) start apache with -X
httpd -k start -X

4) open index.htm on a client browser and submit file PIC_12930. jpg.
You'll receive no response from server on a reasonable time. Debugging
this process reveal me that the problem was on ap_get_brigade function

I don't know if there is something wrong with my code or if there is
some bug on ap_get_brigade function. Any help will be very appreciate!

Thanks to everybody!

Important information:

Apache: version: 2.2.8
OS: Debian GNU Linux (kernel 2.4 or 2.6. it happens on both)
Attachments: index.htm (0.23 KB)
  t02.c (1.81 KB)
  PIC_12930.jpg (22.1 KB)


joshua at slive

Feb 14, 2008, 10:34 AM

Post #2 of 2 (285 views)
Permalink
Re: ap_get_brigade hangs when submitting a muitipart/form-data [In reply to]

On Wed, Feb 13, 2008 at 6:03 PM, Moacir Schmidt
<moacir.schmidt [at] gmail> wrote:
> Hi, everybody!
>
> I'm trying to develop an 'uploader' dso module to handle file
> submissions from client browsers. The code worked well on win32 but on
> debian hangs with files which size is over 22k.

You might want to try the module developers mailing list rather than
the users list.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.