Commit 13821e72 authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

  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
parent 92714a6e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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) {