projects
/
apache
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
737a5a1
)
use APR_STATUS_IS_TIMEUP() instead of direct comparison with APR_TIMEUP.
author
Eric Covener
<covener@apache.org>
Sat, 7 May 2011 11:34:23 +0000
(11:34 +0000)
committer
Eric Covener
<covener@apache.org>
Sat, 7 May 2011 11:34:23 +0000
(11:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1100511
13f79535
-47bb-0310-9956-
ffa450edef68
server/protocol.c
patch
|
blob
|
history
diff --git
a/server/protocol.c
b/server/protocol.c
index 359f848f394a3099404aab5fffe2e8c46c2ae4b8..cc256eb88408cde2f3062118220820f83deb7df5 100644
(file)
--- a/
server/protocol.c
+++ b/
server/protocol.c
@@
-615,7
+615,7
@@
static int read_request_line(request_rec *r, apr_bucket_brigade *bb)
r->proto_num = HTTP_VERSION(1,0);
r->protocol = apr_pstrdup(r->pool, "HTTP/1.0");
}
- else if (
rv == APR_TIMEUP
) {
+ else if (
APR_STATUS_IS_TIMEUP(rv)
) {
r->status = HTTP_REQUEST_TIME_OUT;
}
else if (rv == APR_EINVAL) {
@@
-710,7
+710,7
@@
AP_DECLARE(void) ap_get_mime_headers_core(request_rec *r, apr_bucket_brigade *bb
&len, r, 0, bb);
if (rv != APR_SUCCESS) {
- if (
rv == APR_TIMEUP
) {
+ if (
APR_STATUS_IS_TIMEUP(rv)
) {
r->status = HTTP_REQUEST_TIME_OUT;
}
else {