httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 42190] Similar to bugid #35424, this seems to occur on Apache2
Date Wed, 04 Jun 2008 08:00:29 GMT

rahul <> changed:

           What    |Removed                     |Added
             Status|NEW                         |NEEDINFO

--- Comment #6 from rahul <>  2008-06-04 01:00:29 PST ---
!cat cgi-bin/test.cgi
/bin/date +"`hostname -s`[$$]: I was called at %D %T" >> /tmp/test.log
echo "Content-Type: text/plain"
echo ""
sleep 100

|telnet localhost 8080
Connected to localhost.
Escape character is '^]'.
GET /cgi-bin/test.cgi HTTP/1.0

HTTP/1.1 200 OK
Date: Wed, 04 Jun 2008 07:19:06 GMT
Server: Apache/2.3.0-dev (Unix)
Content-Length: 0
Connection: close
Content-Type: text/plain

The value that is present in rv is returned by the call ap_get_os_error (which
is the errornum from the OS). I do not know any mappings that tells me which os
error is what for apache, Unfortunately APR_STATUS_IS_TIMEUP, which I expected
would understand this does not.

an update - instead of returning rv, if not APR_SUCCESS, return an HTTP error
code, as rv is not an HTTP error code. (checking rv this way is ok as
ap_pass_brigade is the one that sets rv to the above mentioned value and is the
last call. All others that set rv returns immediatly)

--- modules/generators/mod_cgi.c        (revision 663009)
+++ modules/generators/mod_cgi.c        (working copy)
@@ -1021,6 +1021,7 @@


     return OK;                      /* NOT r->status, even if it has changed.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message