diff options
author | Justin Erenkrantz <jerenkrantz@apache.org> | 2002-06-26 21:45:07 +0200 |
---|---|---|
committer | Justin Erenkrantz <jerenkrantz@apache.org> | 2002-06-26 21:45:07 +0200 |
commit | 001b387bcdb1644aea9d7c523dedf5ac04f3c4b4 (patch) | |
tree | 50cf13c57153893234bd5bf3611dc183ab6ee5f3 /modules/arch/win32 | |
parent | Fix mod_ext_filter to look in the main server for filter definitions (diff) | |
download | apache2-001b387bcdb1644aea9d7c523dedf5ac04f3c4b4.tar.xz apache2-001b387bcdb1644aea9d7c523dedf5ac04f3c4b4.zip |
Change conn_rec->keepalive to an enumerated value of
AP_CONN_UNKNOWN
AP_CONN_CLOSE
AP_CONN_KEEPALIVE
This also fixes a problem where ap_discard_request_body would not discard
the body when keepalive was 0. This actually meant the keepalive status
was unknown *not* closed, but no one ever remembered that.
This problem was seen with mod_dav sending error responses (as reported by
Karl Fogel).
Suggested by: Greg "this isn't the '80s" Stein
Reviewed by: Greg Ames
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95891 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/arch/win32')
-rw-r--r-- | modules/arch/win32/mod_isapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/arch/win32/mod_isapi.c b/modules/arch/win32/mod_isapi.c index 636f2f5411..bd99f003e0 100644 --- a/modules/arch/win32/mod_isapi.c +++ b/modules/arch/win32/mod_isapi.c @@ -1093,7 +1093,7 @@ int APR_THREAD_FUNC ServerSupportFunction(isapi_cid *cid, return 0; case HSE_REQ_IS_KEEP_CONN: - *((int *)buf_data) = (r->connection->keepalive == 1); + *((int *)buf_data) = (r->connection->keepalive == AP_CONN_KEEPALIVE); return 1; case HSE_REQ_ASYNC_READ_CLIENT: |