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
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
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
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
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
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
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
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
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
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
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
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
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 (
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
14 matches
Mail list logo