Skip to content

plumbing: transport/http, Fix data race in dumb HTTP test server by preventing sendfile optimization.#1960

Merged
pjbgf merged 1 commit intogo-git:mainfrom
MotanOfficial:main
Apr 5, 2026
Merged

plumbing: transport/http, Fix data race in dumb HTTP test server by preventing sendfile optimization.#1960
pjbgf merged 1 commit intogo-git:mainfrom
MotanOfficial:main

Conversation

@MotanOfficial
Copy link
Copy Markdown

Fixes #1954

},
}
} else {
// Wrap the file server to prevent sendfile optimization on Windows,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Windows, this primitive is called TransmitFile. Which can be analogous to the use of Unix' sendfile in some cases.

@pjbgf pjbgf merged commit 311c286 into go-git:main Apr 5, 2026
16 checks passed
@pjbgf
Copy link
Copy Markdown
Member

pjbgf commented Apr 5, 2026

@MotanOfficial thanks for working on this. 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky test: TestDumbSuite, TestUploadPackSuite and TestReceivePackSuite (Windows)

2 participants