commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r819546 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/fsysio.c
Date Mon, 28 Sep 2009 14:20:14 GMT
Author: mturk
Date: Mon Sep 28 14:20:14 2009
New Revision: 819546

URL: http://svn.apache.org/viewvc?rev=819546&view=rev
Log:
With SENDFILE use NONBLOCK

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/fsysio.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/fsysio.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/fsysio.c?rev=819546&r1=819545&r2=819546&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/fsysio.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/fsysio.c Mon Sep 28 14:20:14 2009
@@ -119,6 +119,10 @@
     }
     if (flags & ACR_FOPEN_DELONCLOSE)
         aflags |= FILE_FLAG_DELETE_ON_CLOSE;
+    if (flags & ACR_FOPEN_SENDFILE_ENABLED) {
+        flags  |= ACR_FOPEN_NONBLOCK;
+        aflags |= FILE_FLAG_SEQUENTIAL_SCAN;
+    }
     if (flags & ACR_FOPEN_NONBLOCK)
         aflags |= FILE_FLAG_OVERLAPPED;
     sa.nLength = sizeof(SECURITY_ATTRIBUTES);



Mime
View raw message