You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/06/12 12:34:10 UTC
DO NOT REPLY [Bug 39785] New: - Status code 408 (Request Timeout) is not logged
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39785>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39785
Summary: Status code 408 (Request Timeout) is not logged
Product: Apache httpd-2
Version: 2.2.2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo: bugs@httpd.apache.org
ReportedBy: nobutaka@nobutaka.org
With Apache 1.3.x, status code 408 is logged to access log when an HTTP request
isn't sent within a timeout period. But this function is lost in Apache 2.x.
This function is useful for detecting connection flood attack and identifying
the attacker's IP address. The following patch for Apache 2.2.2 enables it (also
applicable to 2.0.58).
--- server/protocol.c.orig Wed Jun 7 15:41:12 2006
+++ server/protocol.c Wed Jun 7 20:45:40 2006
@@ -899,6 +899,13 @@
return r;
}
+ if (r->status == HTTP_REQUEST_TIME_OUT) {
+ ap_update_child_status(conn->sbh, SERVER_BUSY_LOG, r);
+ ap_run_log_transaction(r);
+ apr_brigade_destroy(tmp_bb);
+ return r;
+ }
+
apr_brigade_destroy(tmp_bb);
return NULL;
}
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org