Folks, we have been seeing quite a few 502 - (proxy: error reading status
line from remote server) with one of our backend server (very old Oracle
Web Application server 3.0 /HTTP 1.1) and I need to debug these request.
When I set LogLevel to debug, I still do not see the response stream
(bytes being transferred from the backend server to the Proxy) outputted
to the error log.
I only see this:
[Wed May 25 16:14:43 2005] [debug] ssl_engine_io.c(1489):
+-------------------------------------------------------------------------+
[Wed May 25 16:14:43 2005] [debug] proxy_http.c(956): proxy: header only
[Wed May 25 16:14:45 2005] [debug] proxy_http.c(893): proxy: start body
send
[Wed May 25 16:14:45 2005] [debug] proxy_http.c(953): proxy: end body send
[Wedder only May 25 16:14:45 2005] [debug] ssl_engine_io.c(1511): OpenSSL:
read 5/5 bytes from BIO#2ecce0 [mem: 3458d0] (BIO dump follows)
When I looked at the proxy_http.c, I see the following piece of code which
I guess is preventing writing to the debug log. I believe the #if (
conditional if) is a pre-complier flag used during compilation (?) or can
it be also be used during run time somehow by passing some argument ?
#if DEBUGGING
{
apr_off_t readbytes;
apr_brigade_length(bb, 0, &readbytes);
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0,
r->server, "proxy (PID %d): readbytes:
%#x",
getpid(), readbytes);
}
#endif
Also, strangely enough, only mod_proxy module is using the #if DEBUGGING
pre-compiler flag, why !?
Thanks
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
Jignesh Badani
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]