Since every socket is nonblocking, the application always looping until the message transmission is completed. This shall be addressed by making the socket blocking while still has the ability to check if a command is interrupted by the user. Since the stdin is already live on a separate thread, there should be a way to communicate command cancellation to the main thread.
Since every socket is nonblocking, the application always looping until the message transmission is completed. This shall be addressed by making the socket blocking while still has the ability to check if a command is interrupted by the user. Since the stdin is already live on a separate thread, there should be a way to communicate command cancellation to the main thread.