-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Ctrl+c does not abort during server-side stream #506
Comments
This is maybe caused by c-bata/go-prompt, a dependent library. However, we still need to dig down to find the root cause. |
I'm not sure if this is related but I noticed that in my shell, if I launch the This is all that's needed for a repro # This should work
% # hello, pressing ctrl+c
# Now launch evans with any proto and exit (`^d`)
% evans some.proto
[...]
127.0.0.1:50051>
Good Bye :)
# Now try the first line again, `^c` is not working:
% # hello, pressing ctrl+c macOS 12.2 (arm), zsh 5.8, evans 0.10.4 |
The issue with |
@bombsimon FYI: the original issue is not related to this problem. |
The current version (0.10.9) exits on ctrl+c. This causes the user have to re-run the repl. If you agree that this would be a useful change, I can make PR. |
Describe the bug
When I call a (long-lived) server-side stream, I cannot cancel or stop the program by pressing ctrl+c. This used to work until version 0.10.0, but is broken since 0.10.1.
To reproduce
Call a server-side stream and press ctrl+c
Expected behavior
The program shuts down
Environment
protoc
version: 3.12.4The text was updated successfully, but these errors were encountered: