aboutsummaryrefslogtreecommitdiff
path: root/src/internal/poll/sendfile_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/poll/sendfile_windows.go')
-rw-r--r--src/internal/poll/sendfile_windows.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/internal/poll/sendfile_windows.go b/src/internal/poll/sendfile_windows.go
index 8c3353bc6f..2ae8a8d1d7 100644
--- a/src/internal/poll/sendfile_windows.go
+++ b/src/internal/poll/sendfile_windows.go
@@ -11,6 +11,9 @@ import (
// SendFile wraps the TransmitFile call.
func SendFile(fd *FD, src syscall.Handle, n int64) (written int64, err error) {
+ defer func() {
+ TestHookDidSendFile(fd, 0, written, err, written > 0)
+ }()
if fd.kind == kindPipe {
// TransmitFile does not work with pipes
return 0, syscall.ESPIPE