go icon indicating copy to clipboard operation
go copied to clipboard

net: TestSendfile does not use sendfile on Windows

Open neild opened this issue 1 year ago • 0 comments

https://go.dev/cl/581778 extends the existing TestSendfile* tests in the net package to check to see if sendfile (or the platform equivalent) is actually used.

It appears that in the case of TestSendfile on Windows, we aren't using TransmitFile. Other tests, such as TestSendfileParts are using TransmitFile. I'm not sure what's going wrong. I'll make the test skip the check on Windows for now; filing a bug to keep track of the problem.

neild avatar Apr 25 '24 20:04 neild