for o in observers:
# goes to SegmentFetcher._block_request_activity
o.notify(state=COMPLETE, block=block)
+ # now clear our received data, to dodge the #1170 spans.py
+ # complexity bug
+ self._received = DataSpans()
except (BadHashError, NotEnoughHashesError), e:
# rats, we have a corrupt block. Notify our clients that they
# need to look elsewhere, and advise the server. Unlike
def _after_download(unused=None):
after_download_reads = self._count_reads()
#print before_download_reads, after_download_reads
- self.failIf(after_download_reads-before_download_reads > 27,
+ self.failIf(after_download_reads-before_download_reads > 36,
(after_download_reads, before_download_reads))
d.addCallback(self._download_and_check_plaintext)
d.addCallback(_after_download)
def _after_download(unused=None):
after_download_reads = self._count_reads()
#print before_download_reads, after_download_reads
- self.failIf(after_download_reads-before_download_reads > 27, (after_download_reads, before_download_reads))
+ self.failIf(after_download_reads-before_download_reads > 37, (after_download_reads, before_download_reads))
d.addCallback(self._download_and_check_plaintext)
d.addCallback(_after_download)
return d