[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

Antoine Pitrou report at bugs.python.org
Tue Jul 26 18:28:37 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> In my case, exception occured in separate thread between the begginig
> of the thread and starting loop.
> 
> Main thread has a code that correctly stops that separate thread. It
> just calls loop_thread.server.server_close() and after that, calls
> loop_thread.join()
> 
> So, if program termination required, but loop was not started,
> deadlock occur.

Sorry, can you post a snippet reproducing the issue? It will make it
clearer for me to understand it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12463>
_______________________________________


More information about the Python-bugs-list mailing list