It seems that during the C library call to iperf_run_server(self._test) KeyboardInterrupt (aka Ctrl+C) isn't being passed onto the library. This causes the call to block indefinitely until either the server gets a client connection or the server process is killed.
It seems that during the C library call to iperf_run_server(self._test) KeyboardInterrupt (aka Ctrl+C) isn't being passed onto the library. This causes the call to block indefinitely until either the server gets a client connection or the server process is killed.
A solution using threading has been proposed here but for the moment could not get it to work: http://stackoverflow.com/questions/14271697/ctrlc-doesnt-interrupt-call-to-shared-library-using-ctypes-in-python