Re: [Twisted-Python] How to Solve a Problem Like Santa with Stackless and Twisted

2011-12-14 Thread Johann Borck
On 12/14/2011 05:45 AM, Glyph wrote: On Dec 13, 2011, at 2:04 PM, Andrew Francis wrote: Now at time T, there are eight reindeer and two elves ready. At T+1, an additional reindeer and elf are ready (their timestamps are the same, timer resolution notwithstanding). However the Twisted reactor

Re: [Twisted-Python]

2011-09-19 Thread Johann Borck
On 09/19/2011 02:44 PM, Fabian Rothfuchs wrote: Hi Guys, [...] So I wonder, if you can dynamically feed the reactor with new tasks (I use connectTCP for it), as it's not possible to start/stop it on demand (or if there's an alternative approach): Hi, in general you do [whatever you want] in r

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

2011-02-03 Thread Johann Borck
On 02/03/2011 02:01 AM, Wolfgang Powisch wrote: > 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. Hi, you only have to avoid closing the

Re: [Twisted-Python] Getting a list of services and/or plugins are currently running

2010-10-18 Thread Johann Borck
On 10/18/2010 09:10 PM, Elizabeth Liao wrote: [...] What would like to do is to somehow identify what twisted services/plugins are running because different things happen depending on what plugin is currently in use. We are running on Linux wanted to see if there was an easy way of doing that

Re: [Twisted-Python] multiprocessing capability?

2010-02-25 Thread Johann Borck
Darren Govoni wrote: > What you refer to is different than what I need. The real 'Process' > implementation is new to Python 2.6 > http://docs.python.org/library/multiprocessing.html > and is not supported in Twisted at the moment. The Process or threads > in Twisted now, use Python threading/pro

Re: [Twisted-Python] debugging a memory leak

2010-02-25 Thread Johann Borck
Alec Matusis wrote: > In desperation of not finding the real memory leak on the production server, > > I wrote a test server that I can push to arbitrary high RSS memory. I am far > from sure if this the same leak that I observe in production, but I would > like to understand what this one is. > T

Re: [Twisted-Python] multiprocessing capability?

2010-02-25 Thread Johann Borck
Darren Govoni wrote: > The nice thing about using Python's process support is that you can > spawn native Processes that run in separate heaps directly from ONE > Python Twisted app. Not many running side-by-side, which adds the > complexity of now coordinating among them (however easy with > a

Re: [Twisted-Python] fast high load protocol

2010-02-21 Thread Johann Borck
Vlad Shevchenko wrote: > Thanks a lot, Stephen. > > AMP probably is what I looking for. Now I can handle a much more > clients (2 times more without significantly increasing response time). > Server can also handle 3 times more clients without any errors, but > response time grow up. I check for ne

Re: [Twisted-Python] Need help for structured application development

2010-02-18 Thread Johann Borck
Einar S. Idsø wrote: > On Thu, Feb 18, 2010 at 11:36 AM, Johann Borck > wrote: > >> Einar S. Idsø wrote: >> >>> [...] I guess I need a factory that launches server checker >>> objects not as a result of a TCP/UDP connection, but as a r

Re: [Twisted-Python] Need help for structured application development

2010-02-18 Thread Johann Borck
Einar S. Idsø wrote: > [...] I guess I need a factory that launches server checker > objects not as a result of a TCP/UDP connection, but as a result of > new servers being detected. How does this detection work? Are those servers based on twisted? Also, do you control them (start/stop/configurat

Re: [Twisted-Python] HTML shoudl not be baked into twisted.web HTTPimplementation

2009-12-09 Thread Johann Borck
Jared Gisin wrote: > It's unambiguously the correct default if you incorrectly assume that > you're always dealing with a web browser client, which is an invalid > assumption. > > It's not always - it is almost always, a textbook example for the applicability of a sensible default. > The botto

Re: [Twisted-Python] reactor.run() do not return after reactor.stop()

2009-10-10 Thread Johann Borck
Stanislav Yudin wrote: > Thanks, but how can I pass control back to calling code after starting > the reactor? Or the idea is to run it in separate thread? I understand > that main idea on twisted is async processing, but this time I need to > block the calling code until response is received. >

Re: [Twisted-Python] reactor.run() do not return after reactor.stop()

2009-10-10 Thread Johann Borck
Stanislav Yudin wrote: > Hi everyone, > I am having a problem with current twisted trunk (rev 27375). ... So > the problem is that the first call to execute returns from > reactor.run() right after reactor.stop(), but second call to same > method of same instance do not return ever. > I believe

Re: [Twisted-Python] Telnet example

2009-08-27 Thread Johann Borck
Darvin nb wrote: > Can anybody tell me, is there telnet example written with Twisted? > like twisted.conch.telnet ? hth, Johann ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted

Re: [Twisted-Python] Really Basic clarification on defers

2009-08-04 Thread Johann Borck
On Tue, Aug 4, 2009 at 10:08 AM, John Aherne mailto:johnahe...@rocs.co.uk>> wrote: > This is a really basic problem we are trying to decide about, > > We have programs that run quite happily, so far. Its main task is to > receive data from port A and send it out via port B. Then receive data > v

Re: [Twisted-Python] Perspective broker remote calls to multiple servers seem to run sequentially

2009-07-03 Thread Johann Borck
Sean Hollingsworth wrote: > Let me start off by warning everyone that I am extremely new to > twisted (I've been using it maybe a week) and it's highly likely some > things don't work the way I think they should. Or, I'm just using them > incorrectly. > > [..] > > The problems: > > Right now, fo

Re: [Twisted-Python] buildProtocol never called

2009-05-31 Thread Johann Borck
travis+ml-twis...@subspacefield.org wrote: > On Sat, May 30, 2009 at 08:26:40PM -0400, Jean-Paul Calderone wrote: > >> Creating the reactor at all may create a file descriptor which is necessary >> for its operation. Closing these will very likely cause problems. >> > > This is all before

[Twisted-Python] trac server error

2009-04-07 Thread Johann Borck
there seems to be some serious problem with http://twistedmatrix.com/trac/ this is what the browser shows me on about one third of the requests: Traceback (most recent call last): File "/srv/trac/.local/lib/python2.4/site-packages/trac/web/api.py", line 382, in send_error 'text/html') File

Re: [Twisted-Python] Re: How can I disconnect ssl connection from the client side?

2009-02-02 Thread Johann Borck
Jean-Paul Calderone wrote: On Mon, 02 Feb 2009 14:45:40 +0100, Johann Borck wrote: [snip] The correct way is to call conn.disconnect()/transport.loseConnection() in f1 instead of in cancel. It's "correct" in that it works around the bug in Twisted. However, this *is* a

Re: [Twisted-Python] Re: How can I disconnect ssl connection from the client side?

2009-02-02 Thread Johann Borck
Atsuo Ishimoto wrote: ... class Client(basic.LineReceiver): def connectionMade(self): class dmyfile: def read(self, n): if CANCELED: return else: return '1' s = basic.FileSender() pri