httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject Re: WWW Form Bug Report: "ErrorDocument CGI problems with GET vs POST" on HPUX (fwd)
Date Tue, 29 Apr 1997 18:39:32 GMT

A bug from the dead...

If I remember correctly, the symptom is that Apache hangs waiting for
POSTed data in an ErrorDocument script when there's no POSTed data left to
read.

Roy didn't like the patch below and came up with an alternative.


> Hello Rob,
> 
> I don't know if I should send this directly to you - or resubmit it, but
> this problem (I can resend you a desciption of the problem - if this is
> not enough to jog your memory) has come back in later betas of Apache.  It
> was working in early beta's but I noticed it stopped working correctly 
> with Stronghold-2.0b3 which is based on 1.2-b8 of Apache.
> 
> I have applied the same patch that you supply below against b10, and that
> fixes the problem.  I don't know if this was removed because it caused
> some other problem or what - but I wanted to rebring it to your attention.

> Thanks.
> 
> -Ed Hill (ed-hill@uiowa.edu)
> Systems Administrator - Information Technology Services - University of Iowa
> "I am Homer of Borg, prepare to be assim... Ooooooooh donuts!"


 
Index: http_protocol.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_protocol.c,v
retrieving revision 1.8
diff -u -r1.8 http_protocol.c
--- http_protocol.c     1997/01/11 16:23:27     1.8
+++ http_protocol.c     1997/01/11 23:37:22
@@ -1159,6 +1159,9 @@
 
 int should_client_block (request_rec *r)
 {
+    if (is_HTTP_ERROR(r->status))
+       return 0;
+
     if (!r->read_chunked && (r->remaining <= 0))
        return 0;





Mime
View raw message