summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2002-06-04 02:21:36 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2002-06-04 02:21:36 +0000
commit7c3e505cd5f255d6f6abf8a2fd381a91700a0328 (patch)
tree23f4968f5ba43da298f78b331f8e06e8753d88ec
parent4a621ec6613efd389416e939d53cbd9da4d744bf (diff)
downloadhttpd-7c3e505cd5f255d6f6abf8a2fd381a91700a0328.tar.gz
Feedback appreciated - I'm guessing that we can trust the isapi app
opened file handles correctly for the TransmitFile case. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95498 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--modules/arch/win32/mod_isapi.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/arch/win32/mod_isapi.c b/modules/arch/win32/mod_isapi.c
index 81acc00349..89b3242e74 100644
--- a/modules/arch/win32/mod_isapi.c
+++ b/modules/arch/win32/mod_isapi.c
@@ -963,7 +963,12 @@ int APR_THREAD_FUNC ServerSupportFunction(isapi_cid *cid,
return 0;
}
- if ((rv = apr_os_file_put(&fd, &tf->hFile, 0, r->pool)) != APR_SUCCESS) {
+ /* Presume the handle was opened with the CORRECT semantics
+ * for TransmitFile
+ */
+ if ((rv = apr_os_file_put(&fd, &tf->hFile,
+ APR_READ | APR_XTHREAD, r->pool))
+ != APR_SUCCESS) {
return 0;
}
if (tf->BytesToWrite) {