https://issues.apache.org/bugzilla/show_bug.cgi?id=42190
rahul <[EMAIL PROTECTED]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #6 from rahul <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]