Skip to content

win32: let transfers at protocol 29 and 30 finish - #3

Open
nikitatsym wants to merge 1 commit into
nuket:windows-cmake-portfrom
nikitatsym:fix-receiver-goodbye-below-31
Open

nikitatsym wants to merge 1 commit into
nuket:windows-cmake-portfrom
nikitatsym:fix-receiver-goodbye-below-31

Conversation

@nikitatsym

Copy link
Copy Markdown

When the client speaks protocol 29 or 30, like the openrsync that ships with macOS, a push into a Windows receiver copies all files but never exits, and a pull from such a server fails with code 12. The receiver thread waits for a last message that only protocol 31 and later send, and the SIGUSR2 that ends the receiver on POSIX does nothing to a thread. This change waits for that message only at protocol 31 and later and makes SIGUSR2 wake the receiver thread; a new test covers protocols 29 and 30.

@nikitatsym
nikitatsym force-pushed the fix-receiver-goodbye-below-31 branch from 0657a23 to e657840 Compare October 1, 2026 17:28
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.

1 participant