Re: [Twisted-Python] A problem with very long blocking thread in Twisted

2011-08-10 Thread Thorne, Stephen
On Wed, Aug 10, 2011 at 15:35, Itamar Turner-Trauring wrote: >> To solve this problem, I'd like to set threads as daemon. So that all >> related threads are terminated when main loop is interrupted. Any idea on >> this problem will be appreciated. > > I've seen daemon threads causing core dumps on

Re: [Twisted-Python] A problem with very long blocking thread in Twisted

2011-08-10 Thread Itamar Turner-Trauring
> To solve this problem, I'd like to set threads as daemon. So that all > related threads are terminated when main loop is interrupted. Any idea on > this problem will be appreciated. I've seen daemon threads causing core dumps on shutdown. Better to either use a library that doesn't use threads (

Re: [Twisted-Python] A problem with very long blocking thread in Twisted

2011-08-10 Thread Reza Lotun
On Wed, Aug 10, 2011 at 2:49 PM, Heungsub Lee wrote: > > To solve this problem, I'd like to set threads as daemon. So that all > related threads are terminated when main loop is interrupted. Any idea on > this problem will be appreciated. > > Hi Heungsub, Two options as far I as I can see: 1. I

[Twisted-Python] A problem with very long blocking thread in Twisted

2011-08-10 Thread Heungsub Lee
Hi, fellow programmers. I have a problem with very long blocking thread(may not be finished) in Twisted. from socket import * > from twisted.internet import reactor > def consuming(): > while reactor.running: > amqp_consumer.wait() # waiting for very long time or forever > reactor.cal