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

fix: graceful shutdown and interrupt handling #73

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Conversation

lidel
Copy link
Member

@lidel lidel commented Jun 21, 2024

This PR aims to fix interrupt handling when ^C is hit in terminal (a regression detected in #72, so PR against that).

It was not possible to stop ./someguy start via regular interrupt, so I've ported interrupt signal handling from rainbow.

Graceful shutdown should help us avoid caching truncated streaming responses.
Tested with ab tool, works as expected.

@lidel lidel requested a review from gammazero June 21, 2024 20:58
@lidel lidel mentioned this pull request Jun 21, 2024
3 tasks
@lidel lidel marked this pull request as ready for review June 21, 2024 21:22
@lidel lidel mentioned this pull request Jun 21, 2024
5 tasks
Base automatically changed from chore/update-dependencies to main June 24, 2024 22:10
@lidel
Copy link
Member Author

lidel commented Jun 24, 2024

Landing to fix regression from #72, we can refine later.

This fixes interrupt handling when ^C is hit in terminal
and improves UX in general
@lidel lidel merged commit d7438b8 into main Jun 24, 2024
5 checks passed
@lidel lidel deleted the fix/graceful-shutdown branch June 24, 2024 22:20
@lidel lidel mentioned this pull request Jun 24, 2024
5 tasks
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