You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/09/28 16:20:14 UTC
svn commit: r819546 -
/commons/sandbox/runtime/trunk/src/main/native/os/win32/fsysio.c
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);