Ticket #1160: patch-1-hush-logs.3.diff

File patch-1-hush-logs.3.diff, 909 bytes (added by warner, at 2010-08-09T22:28:25Z)

don't log storage requests that arrive after the download is finished

  • src/allmydata/immutable/downloader/share.py

    diff --git a/src/allmydata/immutable/downloader/share.py b/src/allmydata/immutable/downloader/share.py
    index 2cb54de..f7ed4e8 100644
    a b class Share: 
    185185        return None, []
    186186
    187187    def loop(self):
     188        if not self._alive:
     189            return
    188190        try:
    189191            # if any exceptions occur here, kill the download
    190192            log.msg("%s.loop, reqs=[%s], pending=%s, received=%s,"
    class Share: 
    238240        #  new segments added to self._requested_blocks
    239241        #  new data received from servers (responses to our read() calls)
    240242        #  impatience timer fires (server appears slow)
    241         if not self._alive:
    242             return
    243243
    244244        # First, consume all of the information that we currently have, for
    245245        # all the segments people currently want.