From: david-sarah Date: Mon, 28 Jun 2010 23:19:26 +0000 (-0700) Subject: SFTP: don't call .stopProducing on the producer registered with OverwriteableFileCons... X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/flags/reliability?a=commitdiff_plain;h=88169328be84adf29efcc8b9e243d987d2c5d395;p=tahoe-lafs%2Ftahoe-lafs.git SFTP: don't call .stopProducing on the producer registered with OverwriteableFileConsumer (which breaks with warner's new downloader). --- 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