Re: [Twisted-Python] ClientFactory: implementing Request/Response with a persistent connection

2011-02-05 Thread Wolfgang Powisch
Am 2011-02-03 23:26, schrieb Johann Borck: > Then there's a project called txconnpool at > http://pypi.python.org/pypi/txconnpool, maybe it does what you want. thx ... that's great. except that it costs me some time to realize that it's missing error-handling and a errback'ing Protocol causes it

[Twisted-Python] ClientFactory: implementing Request/Response with a persistent connection

2011-02-02 Thread Wolfgang Powisch
Hello, I need to talk to a Line-based TCP service from a Twisted Application. The remote server will accept requests and send a response. I do NOT want to open a NEW TCP-Connection for each request. Are there any examples how to send concurrent requests over a single conenction ? .. so that my m

Re: [Twisted-Python] adbapi and long-running transactions

2009-04-10 Thread Wolfgang Powisch (privat)
Am 10.04.2009 18:16, Wolfgang Powisch (privat) schrieb: > What I need now is to start a Transaction and access this Transaction from > multiple callbacks within my application-code in the main-thread. In the last > callback (and/or errback) I will then either commit or rollback the >

[Twisted-Python] adbapi and long-running transactions

2009-04-10 Thread Wolfgang Powisch (privat)
Hi, I'm using twisted.enterprise.adbapi for non-blocking database interaction with a postgres database. Currently I'm only using runQuery or runOperation for running single queries or some own little helper methods "runQueries" or "runOperations" for running multiple queries within one Transactio