comparison 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
comparison
equal deleted inserted replaced
3:34a521b1a148 4:c5f071d376e5
51 51
52 } else { 52 } else {
53 ptfb = NULL; 53 ptfb = NULL;
54 } 54 }
55 55
56 #if 0 56 #if 1
57 tfrc = TransmitFile(s, fd, nbytes, 0, &olp, ptfb, 0); 57 tfrc = TransmitFile(s, fd, nbytes, 0, &olp, ptfb, 0);
58 #else 58 #else
59 tfrc = TransmitFile(s, fd, nbytes, 0, NULL, ptfb, 0); 59 tfrc = TransmitFile(s, fd, nbytes, 0, NULL, ptfb, 0);
60 #endif 60 #endif
61 61
65 /* set sent */ 65 /* set sent */
66 #if 0 66 #if 0
67 rc = WSAGetOverlappedResult(s, &olp, (unsigned long *) sent, 0, NULL); 67 rc = WSAGetOverlappedResult(s, &olp, (unsigned long *) sent, 0, NULL);
68 #endif 68 #endif
69 69
70 #if 0
70 ngx_log_debug(log, "ngx_sendfile: %d, @%I64d %I64d:%d" _ 71 ngx_log_debug(log, "ngx_sendfile: %d, @%I64d %I64d:%d" _
71 tfrc _ offset _ *sent _ nbytes); 72 tfrc _ offset _ *sent _ nbytes);
73 #else
74 ngx_log_debug(log, "ngx_sendfile: %d, @%I64d %d:%d" _
75 tfrc _ offset _ olp.InternalHigh _ nbytes);
76 #endif
72 77
73 if (rc == 0) { 78 if (rc == 0) {
74 err = ngx_socket_errno; 79 err = ngx_socket_errno;
75 ngx_log_error(NGX_LOG_ERR, log, err, 80 ngx_log_error(NGX_LOG_ERR, log, err,
76 "ngx_sendfile: WSAGetOverlappedResult failed"); 81 "ngx_sendfile: WSAGetOverlappedResult failed");