On Jul 12, 2010, at 8:51 PM, Jason J. W. Williams wrote:
> Are TCP connects in Twisted usually blocking? Noticing a behavior when
> I've got several simultaneous SMTP client objects operating, where
> when one of them hits a server that times out on the connect...the
> program blocks until the co
Hi Guys,
Are TCP connects in Twisted usually blocking? Noticing a behavior when
I've got several simultaneous SMTP client objects operating, where
when one of them hits a server that times out on the connect...the
program blocks until the connect times out. Everything else is working
async/non-blo
> Maybe you've got bigger things in mind, but I don't know what all of
> that buys you, at least from your example use case (client connects,
> prints response from server, quits on 'stop'). What's wrong with keeping
> it simple and handling responses in the Protocol?
>
> def lineReceived(self, lin
> You didn't have to switch to a while loop here. The simplest fix for
> your for loop is this:
>
> �...@inlinecallbacks
> def gotConnection(conn):
> for lineEvent in conn:
> line = yield lineEvent
> print line
Yes, I did that too. I wanted the loop to be able to
On 7/12/10 11:43 AM, Jean Daniel wrote:
> Hello,
>
> I wrote a small client protocol which connects to a notification
> server. The client role is to connect, and then to print the
> notification which comes from the server until the server says "stop"
>
> Does someone knows how to make the f
On 04:43 pm, jeandaniel.bro...@gmail.com wrote:
>Hello,
>
>I wrote a small client protocol which connects to a notification
>server. The client role is to connect, and then to print the
>notification which comes from the server until the server says "stop"
>(a netcat server do just fine, I use "nc
Hello,
I wrote a small client protocol which connects to a notification
server. The client role is to connect, and then to print the
notification which comes from the server until the server says "stop"
(a netcat server do just fine, I use "nc -C -l 6789"). I would like
the API for this client pro