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

2009-08-04 Thread Aaron Bush
A note on how I handled a similar situation in regards to the timeout requirements you seem to have: I had a similar setup where I was forwarding data from clients to servers and back and forth, etc. I wanted to timeout the connection after some idle time and ended up using the TimeoutMixin found

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] Really Basic clarification on defers

2009-08-04 Thread Jarrod Roberson
Deferreds don't do what you think they do. They don't do anything to make your code non-blocking. They only adhere to a contract that something will eventually be returned. The most common use of deferred's to make your code non-blocking is to use .deferToThread() or some other mechanism to make th

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

2009-08-04 Thread John Aherne
Kevin Thanks for the reply. It's good to get some feedback on how someone else would go about tackling a particular issue. It helps to confirm whether what you a retrying makes sense. Thanks John Aherne On Tue, Aug 4, 2009 at 7:35 PM, Kevin Horn wrote: > On Tue, Aug 4, 2009 at 10:08 AM, John

Re: [Twisted-Python] Deferred documentation rewrite

2009-08-04 Thread Edward Z. Yang
Thanks! I've updated the docs accordingly. Cheers, Edward ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Deferred documentation rewrite

2009-08-04 Thread Ying Li
In the Callbacks and errbacks section: "Notice that in the synchronous version, process is inside the try..except block. This translates over to the asynchronous code: if process throws an exception, handle_twisted will get a Failure object..." : I think you may mean "handle_twisted_error", not "ha

Re: [Twisted-Python] My first wxPython App with Twisted

2009-08-04 Thread Kevin Horn
On Tue, Aug 4, 2009 at 2:28 PM, Thalassery Koran wrote: > Hi, >I am creating the first GUI app (wxPython based) using Twisted. >I am facing an issue which I cannot seem to solve/understand due > to lack of trace or anything. > >I had a big app written on twisted and now I am creating a

[Twisted-Python] My first wxPython App with Twisted

2009-08-04 Thread Thalassery Koran
Hi, I am creating the first GUI app (wxPython based) using Twisted. I am facing an issue which I cannot seem to solve/understand due to lack of trace or anything. I had a big app written on twisted and now I am creating a login screen to the app. The app used to work without any is

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

2009-08-04 Thread Kevin Horn
On Tue, Aug 4, 2009 at 10:08 AM, John Aherne 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 via > port B and send it out via po

Re: [Twisted-Python] Deferred documentation rewrite

2009-08-04 Thread Don Dwiggins
Andrew Francis wrote: > Simple definition: In a synchronous call, the caller blocks until a result is > ready. Upon return the next statement is executed (barring something like an > exception). In an asynchronous call, the caller does not wait for a result > and continues. Just a thought on te

Re: [Twisted-Python] Deferred documentation rewrite

2009-08-04 Thread Andrew Francis
Hi Edward: Message: 2 Date: Mon, 03 Aug 2009 18:00:07 -0400 From: "Edward Z. Yang" Subject: Re: [Twisted-Python] Deferred documentation rewrite To: Twisted general discussion Message-ID: <1249336297-sup-7...@javelin> Content-Type: text/plain; charset=UTF-8 >Why callbacks? > - Asynchronous int

[Twisted-Python] Really Basic clarification on defers

2009-08-04 Thread John Aherne
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 via port B and send it out via port A. It's pretty much like a chat setup. You just build up a l

Re: [Twisted-Python] OS for Twisted Framework to run on

2009-08-04 Thread Reza Lotun
Hi, > is there any significant reason/advantage to run the Twisted Framework > on Linux or on FreeBSD? On Linux you can use the epoll reactor. FreeBSD's equivalent is kqueue and I don't think that reactor is as stable as the epoll one. I could be wrong though. Cheers, Reza -- Reza Lotun +44 (

[Twisted-Python] OS for Twisted Framework to run on

2009-08-04 Thread vitaly
hi, is there any significant reason/advantage to run the Twisted Framework on Linux or on FreeBSD? Appreciate the help. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python