httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
https://issues.apache.org/bugzilla/show_bug.cgi?id=42190


rahul <rahul@sun.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




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

|telnet localhost 8080
Trying 127.0.0.1...
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 @@
     }

     apr_file_close(script_err);
+    if (rv != APR_SUCCESS) return HTTP_INTERNAL_SERVER_ERROR;

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


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message