[Twisted-Python] Connection was closed cleanly.

2013-04-08 Thread Sergey Gerasimov
Hello to all! I see in the log file many failures like: [Broker, client Failure: twisted.spread.pb.PBConnectionLost: [Failure instance: Traceback (failure with no frames): < class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly.] All communications via PB use loopba

[Twisted-Python] Reason of calling Stale Broker inside loopback

2013-03-29 Thread Sergey Gerasimov
Hello, 1. What is the reason of error "DeadReferenceError: Calling Stale Broker"? My program uses PB inside loopback, so I shouldn't have any disconnects. 2. I call many time remote method returning pb.Referenceable. Can it be a reason of topic 1 or generally lead to system's d

[Twisted-Python] banana SIZE_LIMIT

2013-03-18 Thread Sergey Gerasimov
Hi, Are they some simple ways (keeping existing interface) around BananaError for long values returned from PB methods? ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] eated traceback when decorate method already decorated by inlineCallbacks

2013-03-15 Thread Sergey Gerasimov
14.03.2013, в 18:20, exar...@twistedmatrix.com написал(а): > On 09:40 am, ser...@gmail.com wrote: >> Hello to all! >> >> Why traceback doesn't include call of g() here? > > Tracebacks are tricky, and inlineCallbacks doesn't make them look > exactly like they would look if you didn't have Defe

[Twisted-Python] logging in twisted based projects

2013-03-14 Thread Sergey Gerasimov
I'm implementing some project based on twisted. I would like to use some logging mechanism in my modules and see both twisted generated log records and log records from my modules and be able to filter log records by level and source (generated by twisted, or subset of my modules). What s

[Twisted-Python] eated traceback when decorate method already decorated by inlineCallbacks

2013-03-14 Thread Sergey Gerasimov
Hello to all! Why traceback doesn't include call of g() here? import traceback from twisted.internet import defer, reactor def decor1(f, *argv, **kw): @defer.inlineCallbacks def decor1(): try: res = yield f(*argv, **kw) defer.returnValue(res)

Re: [Twisted-Python] combine local and remote calls in perspective brokers

2013-02-25 Thread Sergey Gerasimov
From: Itamar Turner-Trauring [mailto:ita...@futurefoundries.com] Sent: Monday, February 25, 2013 4:38 AM To: ser...@gmail.com; Twisted general discussion Subject: Re: [Twisted-Python] combine local and remote calls in perspective brokers On Sun, Feb 24, 2013 at 11:23 AM, Sergey

[Twisted-Python] combine local and remote calls in perspective brokers

2013-02-24 Thread Sergey Gerasimov
Hello to all! I'm using PB as communication protocol for components of my system. Components can be located locally on the only one machine or in distributed fashion. It depends on the config file. At the moment all communications are implemented as callRemote calls. I would like to keep t