[Twisted-Python] loseConnection should stop the int32/int16 stringReceived too

Itamar Shtull-Trauring itamar at itamarst.org
Tue Mar 15 10:29:35 MST 2005


On Tue, 2005-03-15 at 14:41 +0100, Andrea Arcangeli wrote:
> On Mon, Mar 14, 2005 at 12:58:47PM +0000, Jp Calderone wrote:
> >   If the feature is desired somewhere else, the best way to add it is
> >   to either find another way that doesn't rely on
> >   transport.disconnecting (and then we can fix LineReceiver too), or
> >   factor the code such that all protocols can provide the feature
> >   without having more than one method that relies on
> >   transport.disconnecting (then we can fix them all at once someday).
> 
> If there's no real generic API and you're not planning on adding it
> soon, perhaps we could check it with hasattr and spawn a warning if the
> transport doens't provide .disconnecting?

We probably ought to add an API, since the functionality appears to be
useful.





More information about the Twisted-Python mailing list