Hi,
I wrote a server using a protocol that inherit from 'basic.LineReceiver'.
In some circonstances I need to reject the data send by the client and to
close the connection. Here is how I do that:
class MyProtocol(basic.LineReceiver):
def error(self, error_msg):
self.
That's strange.
Although the write doesn't block, ITransport.loseConnection() will *first*
finish writing everything and *then* lose the connection.
cheers
lvh
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi
Hi,
in a GUI application I'm using quite a comprehensive chain of deferreds
and I'm running the mainloop from the glib2reactor. At a certain point
of my application I need to terminate the entire chain of deferreds to
make sure that no more data is loaded and processed. Stopping the
react
On Tue, 2011-06-28 at 15:30 +0200, tomw wrote:
> I tried to
> cancel the first deferred, hoping that the cancel event will be
> forwarded to the next deferred in the chain or at least invoke an
> errback, but for some reason it does not work and the deferreds seem to
> run forever. Any ideas on ho
Hi Tom
> in a GUI application I'm using quite a comprehensive chain of deferreds
> and I'm running the mainloop from the glib2reactor. At a certain point of
> my application I need to terminate the entire chain of deferreds to make
> sure that no more data is loaded and processed. Stopping the rea
On Mon, Jun 27, 2011 at 11:53 PM, Richard Wall wrote:
> I'm in the process of switching some of my Javascript code from
> MochiKit.Async.Deferred to the recently introduced jQuery.Deferred.
>
> Does anyone else hate the confusing new method names they've chosen?
> Why couldn't they just stick with
On 01:30 pm, t...@ubilix.com wrote:
>Hi,
>
>in a GUI application I'm using quite a comprehensive chain of deferreds
>and I'm running the mainloop from the glib2reactor. At a certain point
>of my application I need to terminate the entire chain of deferreds to
>make sure that no more data is loaded
On 28 Jun 2011, at 20:37, exar...@twistedmatrix.com wrote:
> On 01:30 pm, t...@ubilix.com wrote:
>> Hi,
>>
>> in a GUI application I'm using quite a comprehensive chain of deferreds
>> and I'm running the mainloop from the glib2reactor. At a certain point
>> of my application I need to terminate