aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_sendfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/win32/ngx_sendfile.c')
-rw-r--r--src/os/win32/ngx_sendfile.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/os/win32/ngx_sendfile.c b/src/os/win32/ngx_sendfile.c
index ce43b37b3..c2bdf6c62 100644
--- a/src/os/win32/ngx_sendfile.c
+++ b/src/os/win32/ngx_sendfile.c
@@ -83,11 +83,12 @@ int ngx_sendfile(ngx_connection_t *c,
ptfb = NULL;
}
-#if 0
+#if 1
flags = TF_DISCONNECT|TF_REUSE_SOCKET;
-#endif
-
+ tfrc = transmitfile(c->fd, NULL, 0, 0, &olp, NULL, flags);
+#else
tfrc = TransmitFile(c->fd, fd, nbytes, 0, &olp, ptfb, flags);
+#endif
#if 0
#if 1