Support for interrupting output in telnet session #107
Replies: 3 comments 5 replies
-
Hi @korayko , |
Beta Was this translation helpful? Give feedback.
-
Ok, so I assume you want to stop the whole activity, not only stop "its output". In my opinion, the right way to do so is:
I'd prefer not to use signals (i.e., CTRL-C) because it has a completely different meaning: stop the whole application (inside a local session) or stop the telnet client (inside a remote session). |
Beta Was this translation helpful? Give feedback.
-
@korayko Worker thread
Asynchronous timers
You only have these two possibilities if you want to be able to stop the activity, regardless of the cli library you're using. I'd prefer the second version (asynchronous timers), because the problem you're solving is intrinsically I/O bounded, and it's more efficient to use asynchronous I/O. |
Beta Was this translation helpful? Give feedback.
-
Hi Daniele,
First of all, thanks for sharing your great work with the community.
What I wonder, is there any way of stopping the output of a provided command which takes a considerably long time to finish at the telnet client side, by providing a CTRL+C signal or something else?
If not, do you think it is easily doable?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions