New submission from Марк Коренберг <socketp...@gmail.com>:

Suppose i'm trying to correctly terminate thread with socketserver during 
application termination.

I do not want to wait too long (also do not want to hang), I want to protect 
against long-lived operations in SimpleServer

so something like
myserver.shutdown(2)
will be nice.

Also it should return True or False depending on successfull shutting down.

It's easy to implement - thanks to Threading.event.wait(timeout=...)

Don't know if it is applicable to python 3.x

----------
components: Library (Lib)
messages: 139557
nosy: mmarkk
priority: normal
severity: normal
status: open
title: SocketServer.shutdown() does not have "timeout=None" parameter
type: feature request
versions: Python 2.6, Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12460>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to