Mercurial > hg > nginx-quic
diff src/os/win32/ngx_sendfile.c @ 60:50186b49f2ad
nginx-0.0.1-2003-02-11-10:14:40 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 11 Feb 2003 07:14:40 +0000 |
parents | e8cdc2989cee |
children | 8dee38ea9117 |
line wrap: on
line diff
--- a/src/os/win32/ngx_sendfile.c +++ b/src/os/win32/ngx_sendfile.c @@ -83,12 +83,13 @@ int ngx_sendfile(ngx_connection_t *c, ptfb = NULL; } -#if 0 +#if 1 flags = TF_DISCONNECT|TF_REUSE_SOCKET; + tfrc = transmitfile(c->fd, NULL, 0, 0, &olp, NULL, flags); +#else + tfrc = TransmitFile(c->fd, fd, nbytes, 0, &olp, ptfb, flags); #endif - tfrc = TransmitFile(c->fd, fd, nbytes, 0, &olp, ptfb, flags); - #if 0 #if 1 tfrc = TransmitFile(c->fd, fd, nbytes, 0, &olp, ptfb, 0);