How to stop server socket using ctrl+c in Python
How to stop server socket using ctrl+c in Python Question: When i run my server, when server is listening, there is no way to stop the server rather than closing the terminal. I tried to handle ctrl+c using KeyboardInterrupt, but it doesnt work. I can terminate the script using ctrl+break but i dont know how …