Skip to content

Fix fastsync hanging when file vanishes#21

Merged
Szymongib merged 1 commit intomasterfrom
fix-vanished-file-hang
Apr 1, 2026
Merged

Fix fastsync hanging when file vanishes#21
Szymongib merged 1 commit intomasterfrom
fix-vanished-file-hang

Conversation

@Szymongib
Copy link
Copy Markdown
Contributor

Right now when the file is removed after fastsync send is invoked both receiving and sending sides will hand indefinitely. This fixes this issue by exitting the sender with an error, which in turn makes receiver to fail as not all data was received.

This also improves error handling a bit and adds test to reproduce the issue.

@Szymongib Szymongib requested review from a team, DavidVentura and ruuda March 30, 2026 18:03
Copy link
Copy Markdown

@yannickhilber yannickhilber left a comment

Choose a reason for hiding this comment

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

Thanks it works well !

We have the errors at the top level, we could avoid panicking and handle them more cleanly.

Right now when the file is removed after fastsync send is invoked
both receiving and sending sides will hand indefinitely.
This fixes this issue by exitting the sender with an error, which
in turn makes receiver to fail as not all data was received.
@Szymongib Szymongib force-pushed the fix-vanished-file-hang branch from b39f6ea to 4029a42 Compare March 31, 2026 13:23
@Szymongib Szymongib merged commit 1e12c2c into master Apr 1, 2026
@Szymongib Szymongib deleted the fix-vanished-file-hang branch April 1, 2026 12:36
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.

2 participants