[Twisted-Python] INCOMPATIBLE CHANGE: twisted.python.threadpool

Glyph glyph at twistedmatrix.com
Wed Oct 1 23:17:18 MDT 2014


On Sep 30, 2014, at 10:12 PM, Joshua Bartlett <josh at bartletts.id.au> wrote:

> On 1 October 2014 14:09, Glyph <glyph at twistedmatrix.com> wrote:
> 
> That said: why did you need a threadpool of daemon threads?
> 
> That's a very good question. One of my comaintainers thinks the answer is, "My codebase is old enough to vote and to answer your question I'd probably have to turn our SVN server back on. Please don't make me." :-)
> 
> I think the real reason is that the third-party library that we're calling from the threads sometimes takes a really long time to return, which means that unless we use daemon threads the only timely way to shut down / restart the service is kill -9, which is not ideal.

Aah.  That's a very good reason, come to think of it.  Maybe we should default to daemon threads at some point in the future, for that matter; it would make exiting easier, by allowing us to still join() all the threads, but still exit if attempting to do so times out.

-glyph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20141001/d3b7777f/attachment.html>


More information about the Twisted-Python mailing list