Re: twisted - locking threads when deferToThread is used

2007-08-08 Thread Ladislav Andel
And here is the code: from twisted.internet import reactor, defer, threads from siptest import siptest_f from twisted.internet.threads import deferToThread test_opts = {'username':'test','transport':'udp','localport':'5085','password':'test'} domain = ['sip.1und1.de', 'sip.babble.net'] class

Re: twisted - locking threads when deferToThread is used

2007-08-08 Thread Ladislav Andel
Chris Mellon wrote: > On 8/8/07, Chris Mellon <[EMAIL PROTECTED]> wrote: > >> On 8/8/07, Ladislav Andel <[EMAIL PROTECTED]> wrote: >> >>> Hi, >>> I'm writing an application which will be periodically testing servers. >>> I will have a global list of these servers(domain names) and need to d

Re: twisted - locking threads when deferToThread is used

2007-08-08 Thread Chris Mellon
On 8/8/07, Chris Mellon <[EMAIL PROTECTED]> wrote: > On 8/8/07, Ladislav Andel <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm writing an application which will be periodically testing servers. > > I will have a global list of these servers(domain names) and need to do > > few tasks. > > 1) DNS checks -

Re: twisted - locking threads when deferToThread is used

2007-08-08 Thread Chris Mellon
On 8/8/07, Ladislav Andel <[EMAIL PROTECTED]> wrote: > Hi, > I'm writing an application which will be periodically testing servers. > I will have a global list of these servers(domain names) and need to do > few tasks. > 1) DNS checks - I will use asynchronous twisted-names for it > - in case there