On Sep 30, 2014, at 10:12 PM, Joshua Bartlett <j...@bartletts.id.au> wrote:
> On 1 October 2014 14:09, Glyph <gl...@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
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python