From 88169328be84adf29efcc8b9e243d987d2c5d395 Mon Sep 17 00:00:00 2001 From: david-sarah Date: Mon, 28 Jun 2010 16:19:26 -0700 Subject: [PATCH] SFTP: don't call .stopProducing on the producer registered with OverwriteableFileConsumer (which breaks with warner's new downloader). --- src/allmydata/frontends/sftpd.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/allmydata/frontends/sftpd.py b/src/allmydata/frontends/sftpd.py index 894af5f2..72a21238 100644 --- a/src/allmydata/frontends/sftpd.py +++ b/src/allmydata/frontends/sftpd.py @@ -552,9 +552,6 @@ class OverwriteableFileConsumer(PrefixingLogMixin): # truncated to before the milestone. eventually_callback(d)(None) - # FIXME: causes spurious failures - #self.unregisterProducer() - def close(self): if not self.is_closed: self.is_closed = True @@ -565,9 +562,7 @@ class OverwriteableFileConsumer(PrefixingLogMixin): self.finish() def unregisterProducer(self): - if self.producer: - self.producer.stopProducing() - self.producer = None + pass SIZE_THRESHOLD = 1000 -- 2.45.2