[Twisted-Python] how to stop dataReceived while waiting a deferred to fire?

Jp Calderone exarkun at divmod.com
Mon Feb 21 22:33:22 EST 2005

On Mon, 21 Feb 2005 22:36:44 +0100, Andrea Arcangeli <andrea at cpushare.com> wrote:
>On Mon, Feb 21, 2005 at 08:47:57PM +0000, glyph at divmod.com wrote:
> > On Mon, 21 Feb 2005 18:46:18 +0100, Andrea Arcangeli <andrea at cpushare.com> wrote:
> > 
> > > Ok here we go, I even found a severe bug in the linereceiver code and I
> > > fixed it as well. The bug in linereceiver happens like this:
> > 
> > Any chance that you could include some unit tests for the behavior
> > you're expecting?  I think it might need to be fixed a different way.
> > For example:
> Using the echoserver/client as base should be good enough to test this.
> >From the client send a flood of lines, and from the server call
> pauseProducing() after the first line has been received. Then verify the
> server doesn't receive the other lines and that they sit in the tcp recv
> queue.

  That's not a unit test.  Unit tests are described here:



More information about the Twisted-Python mailing list