[Twisted-Python] Proposed change to producer/consumer interface
24 Sep
2001
24 Sep
'01
6:30 p.m.
When a producer unregisters itself using stopConsuming() (see internet/abstract.py) the consumer closes itself by calling loseConnection(). I contend this is silly, and that the consuming FileDescriptor should not close itself. This is howeever a non-backwards compatible change, so anyone using producers will need to update their code (though e.g. the FTP code seems to explicitly close the consumer.) So - should I make this change or add a new function "unregisterProducer()" the unregisters the producer without closing the connection?
8244
Age (days ago)
8244
Last active (days ago)
0 comments
1 participants
participants (1)
-
Itamar Shtull-Trauring