-
Notifications
You must be signed in to change notification settings - Fork 18k
net: avoid using Windows' TransmitFile on non-server machines #73758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
3f6b8ea
to
10993f4
Compare
This PR (HEAD: 10993f4) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/673855. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Shibi J M: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from qiu laidongfeng2: Patch Set 2: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Go LUCI: Patch Set 2: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-05-18T09:49:13Z","revision":"940c666432fd0e76d880f667fd24631810b1bb25"} Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
10993f4
to
4be37a2
Compare
Message from qiu laidongfeng2: Patch Set 2: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Go LUCI: Patch Set 2: This CL has failed the run. Reason: Tryjob golang/try/gotip-windows-amd64 has failed with summary (view all results):
To reproduce, try Additional links for debugging: Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Go LUCI: Patch Set 2: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
This PR (HEAD: 4be37a2) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/673855. Important tips:
|
4be37a2
to
02abfaf
Compare
This PR (HEAD: 02abfaf) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/673855. Important tips:
|
Message from Emmanuel Odeke: Patch Set 4: Commit-Queue+1 Run-TryBot+1 (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Go LUCI: Patch Set 4: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-05-19T07:34:09Z","revision":"b0dc2fd46608c17deba31cf8b66e5a65039fdf7d"} Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Gopher Robot: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Emmanuel Odeke: Patch Set 4: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Go LUCI: Patch Set 4: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Go LUCI: Patch Set 4: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
8cdaeec
to
39e9bfe
Compare
This PR (HEAD: 39e9bfe) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/673855. Important tips:
|
Message from Shibi J M: Patch Set 5: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Damien Neil: Patch Set 5: Commit-Queue+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Go LUCI: Patch Set 5: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-05-19T18:31:35Z","revision":"8a14f678c6334245065cf15f65f8d13ca19e249e"} Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Damien Neil: Patch Set 5: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Go LUCI: Patch Set 5: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Go LUCI: Patch Set 5: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
39e9bfe
to
18e1d2f
Compare
This PR (HEAD: 18e1d2f) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/673855. Important tips:
|
Message from Shibi J M: Patch Set 6: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Damien Neil: Patch Set 6: Code-Review+1 Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Go LUCI: Patch Set 6: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-05-19T20:45:19Z","revision":"11c37f395845343c553aa71108843ef137935531"} Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Damien Neil: Patch Set 6: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Go LUCI: Patch Set 6: This CL has failed the run. Reason: Tryjob golang/try/x_tools-gotip-linux-amd64 has failed with summary (view all results):
To reproduce, try Additional links for debugging: Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Go LUCI: Patch Set 6: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Shibi J M: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Damien Neil: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
18e1d2f
to
315ddc0
Compare
This PR (HEAD: 315ddc0) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/673855. Important tips:
|
Message from Shibi J M: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Alex Brainman: Patch Set 7: Code-Review+1 Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Go LUCI: Patch Set 7: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-05-20T09:30:11Z","revision":"6fe2b44ada131b51a8e931d910a3f864e39cab58"} Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Alex Brainman: Patch Set 7: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Go LUCI: Patch Set 7: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Go LUCI: Patch Set 7: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Quim Muntal: Patch Set 7: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from David Chase: Patch Set 7: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Message from Damien Neil: Patch Set 7: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
Windows API's TransmitFile function is limited to two concurrent operations on workstation and client versions of Windows. This change modifies the net.sendFile function to perform no work in such cases so that TransmitFile is avoided. Fixes #73746 Change-Id: Iba70d5d2758bf986e80c78254c8e9e10b39bb368 GitHub-Last-Rev: 315ddc0 GitHub-Pull-Request: #73758 Reviewed-on: https://go-review.googlesource.com/c/go/+/673855 Reviewed-by: Alex Brainman <[email protected]> Auto-Submit: Damien Neil <[email protected]> Reviewed-by: Quim Muntal <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: David Chase <[email protected]> Reviewed-by: Damien Neil <[email protected]>
Message from Damien Neil: Patch Set 7: Auto-Submit+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/673855. |
This PR is being closed because golang.org/cl/673855 has been merged. |
Windows API's TransmitFile function is limited to two concurrent
operations on workstation and client versions of Windows. This change
modifies the net.sendFile function to perform no work in such cases
so that TransmitFile is avoided.
Fixes #73746