httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Trawick" <traw...@gmail.com>
Subject Re: proxy returning apr_status_t to handler?
Date Tue, 18 Dec 2007 18:50:11 GMT
On Dec 18, 2007 12:06 PM, Plüm, Rüdiger, VF-Group
<ruediger.pluem@vodafone.com> wrote:
>
>
> > -----Ursprüngliche Nachricht-----
> > Von: Jeff Trawick
> > Gesendet: Dienstag, 18. Dezember 2007 17:43
> > An: dev@httpd.apache.org
> > Betreff: Re: proxy returning apr_status_t to handler?
>
> >
> >
>
> Argh. Without further testing: Does the following patch fixes this:
>
> Index: modules/proxy/proxy_util.c
> ===================================================================
> --- modules/proxy/proxy_util.c  (revision 605247)
> +++ modules/proxy/proxy_util.c  (working copy)
> @@ -1601,7 +1601,7 @@
>  #endif
>
>      r = conn->r;
> -    if (conn->need_flush && r) {
> +    if (conn->need_flush && r && (r->eos_sent || r->bytes_sent))
{
>          /*
>           * We need to ensure that buckets that may have been buffered in the
>           * network filters get flushed to the network. This is needed since

Yes; bogus "200 OK" is resolved:

HTTP/1.1 500 Internal Server Error
Date: Tue, 18 Dec 2007 18:47:08 GMT
Server: Apache/2.3.0-dev (Unix) DAV/2
Content-Length: 535
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 you@example.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
$ tail -1 ~/inst/23/logs/access_log
127.0.0.1 - - [18/Dec/2007:13:47:08 -0500] "POST /readbody.pl HTTP/1.1" 500 535
$ tail -5 ~/inst/23/logs/error_log
[Tue Dec 18 13:47:08 2007] [debug] proxy_util.c(2281): proxy: HTTP:
fam 2 socket created to connect to 127.0.0.1
[Tue Dec 18 13:47:08 2007] [debug] proxy_util.c(2382): proxy: HTTP:
connection complete to 127.0.0.1:8081 (127.0.0.1)
[Tue Dec 18 13:47:13 2007] [error] (70007)The timeout specified has
expired: proxy: prefetch request body failed to 127.0.0.1:8081
(127.0.0.1) from 127.0.0.1 ()
[Tue Dec 18 13:47:13 2007] [debug] proxy_util.c(1995): proxy: HTTP:
has released connection for (127.0.0.1)
[Tue Dec 18 13:47:13 2007] [error] [client 127.0.0.1] Handler for
proxy-server returned invalid result code 70007

Mime
View raw message