Skip to content
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

Context cancellation #14

Merged
merged 1 commit into from
Mar 2, 2022

Conversation

joonas-fi
Copy link
Contributor

Bonus work found during #12

(Extracted from previous PR: #11)

@joonas-fi
Copy link
Contributor Author

joonas-fi commented Mar 2, 2022

I think I missed one change when I submitted this, sorry, from rsynctest.go

edit: yup, will fix it

currently when context is canceled, and if in Serve() based Accept()
loop, the process is shut down without waiting for the client
connections to gracefully exit.

not sure if graceful handling would be worth the effort.
@joonas-fi joonas-fi force-pushed the feat-context-cancellation branch from eb7b06e to a17e0b5 Compare March 2, 2022 08:26
@stapelberg stapelberg merged commit 19c8d5d into gokrazy:main Mar 2, 2022
@stapelberg
Copy link
Contributor

Thanks!

joonas-fi added a commit to joonas-fi/rsync that referenced this pull request Mar 3, 2022
currently when context is canceled, and if in Serve() based Accept()
loop, the process is shut down without waiting for the client
connections to gracefully exit.

not sure if graceful handling would be worth the effort.
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