Mercurial > hg > nginx
diff src/os/win32/ngx_sendfile.c @ 4:c5f071d376e5
nginx-0.0.1-2002-08-22-19:24:03 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 22 Aug 2002 15:24:03 +0000 |
parents | 34a521b1a148 |
children | 708f8bb772ec |
line wrap: on
line diff
--- a/src/os/win32/ngx_sendfile.c +++ b/src/os/win32/ngx_sendfile.c @@ -53,7 +53,7 @@ int ngx_sendfile(ngx_socket_t s, ptfb = NULL; } -#if 0 +#if 1 tfrc = TransmitFile(s, fd, nbytes, 0, &olp, ptfb, 0); #else tfrc = TransmitFile(s, fd, nbytes, 0, NULL, ptfb, 0); @@ -67,8 +67,13 @@ int ngx_sendfile(ngx_socket_t s, rc = WSAGetOverlappedResult(s, &olp, (unsigned long *) sent, 0, NULL); #endif +#if 0 ngx_log_debug(log, "ngx_sendfile: %d, @%I64d %I64d:%d" _ tfrc _ offset _ *sent _ nbytes); +#else + ngx_log_debug(log, "ngx_sendfile: %d, @%I64d %d:%d" _ + tfrc _ offset _ olp.InternalHigh _ nbytes); +#endif if (rc == 0) { err = ngx_socket_errno;