You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Charles Jardine <cj...@cam.ac.uk> on 2000/08/01 11:51:58 UTC
apache-api/6359: Server hangs during error processing after POSTed body has been read by content handler
>Number: 6359
>Category: apache-api
>Synopsis: Server hangs during error processing after POSTed body has been read by content handler
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Tue Aug 01 03:00:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: cj10@cam.ac.uk
>Release: Apache/1.3.12 Ben-SSL/1.40 (Unix)
>Organization:
apache
>Environment:
SunOS curlew.csi.cam.ac.uk 5.6 Generic_105181-21 sun4u sparc SUNW,Ultra-1
cc: WorkShop Compilers 4.2 30 Oct 1996 C 4.2
This is perl, version 5.005_03 built for sun4-solaris
mod_perl-1.24
>Description:
The following perl content handler demonstrates the problem:
package Apache::bugdemo;
use Apache;
use Apache::Constants qw(:common);
sub handler {
my $r = shift;
my @c = $r->content;
NOT_FOUND
}
1;
If this is handling a GET request, without a body, it works as
expected. The browser receives a Not Found response. If, however,
the request is a POST, with a body, server hangs.
I suspect that the main line code is attempting to read the
body again ?
>How-To-Repeat:
I hope the information above will allow you to repeat
the problem.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]