Message139557
| Author |
socketpair |
| Recipients |
socketpair |
| Date |
2011年07月01日.09:31:27 |
| SpamBayes Score |
6.866782e-06 |
| Marked as misclassified |
No |
| Message-id |
<1309512688.11.0.74406934883.issue12460@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年07月01日 09:31:28 | socketpair | set | recipients:
+ socketpair |
| 2011年07月01日 09:31:28 | socketpair | set | messageid: <1309512688.11.0.74406934883.issue12460@psf.upfronthosting.co.za> |
| 2011年07月01日 09:31:27 | socketpair | link | issue12460 messages |
| 2011年07月01日 09:31:27 | socketpair | create |
|