You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1996/11/13 23:24:36 UTC
Re: WWW Form Bug Report: "Server spins in cgi_handler() and bogs down the machine" on Solaris 2.x
Hi,
Thanks for the information and patch. I'll forward it to the developers
list.
cheers,
rob
vandry@mlink.net wrote:
>
>Submitter: vandry@Mlink.NET
>Operating system: Solaris 2.x, version:
>Version of Apache Used: 1.1.1
>Extra Modules used:
>URL exhibiting problem:
>
>Symptoms:
>--
>Our Apache server (Dual 85MHz SPARCstation 10
>128M RAM) which receives about 6 or 7 hits a
>second in peak usage time would sometimes hang
>for several minutes at a time, continuing to
>accept request, but not processing them. This
>elusive intermittent problem took us 4 months
>to track down, but I do believe the following
>fix will solve the problem:
>
>*** mod_cgi.c 1996/11/13 21:18:05 1.1
>--- mod_cgi.c 1996/11/13 21:18:49
>***************
>*** 323,328 ****
>--- 323,329 ----
>
> len_read = read_client_block (r, argsbuffer, len_to_read);
> if (len_read == 0) break;
>+ remaining -= len_read;
> }
>
> fflush (script_out);
>
>The problem would usually eventually go away
>simply because there's a hard_timeout() on this
>block of code. Request were not processed because
>the machine was overloaded with 2 or 3 spinning
>httpds, I guess.
>
>I installed the fix only 5 minutes ago, I hope
>this will solve the problem.
>
>-Phil
>--
>
>Backtrace:
>--
>
>--
>
--
Rob Hartill. Internet Movie Database Ltd. http://www.imdb.com/