mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-04-08 19:25:06 +02:00
This change fixes a bug introduced with the addition of Python3.5 support. In Python3.5, SIGINT is silently ignored for system calls (e.g., socket.accept) if the SIGINT signal handler does not raise an exception. This causes the server to delay shutdown when receiving SIGINT until after a new connection has been made. This change updates the server's SIGINT signal handler to raise the correct exception and updates the error handling code while serving connections to account for this change in SIGINT processing. This allows the server to shutdown immediately upon receiving SIGINT. The server unit tests are updated to account for this change.