print a less scary, more informative message when a share request times out
authorForrest Voight <forrest@forre.st>
Mon, 26 Nov 2012 23:57:22 +0000 (18:57 -0500)
committerForrest Voight <forrest@forre.st>
Mon, 26 Nov 2012 23:57:22 +0000 (18:57 -0500)
p2pool/node.py

index a31dece..8e414c0 100644 (file)
@@ -114,6 +114,9 @@ class P2PNode(p2p.Node):
                             self.node.tracker.get_nth_parent_hash(head, min(max(0, self.node.tracker.get_height_and_last(head)[0] - 1), 10)) for head in self.node.tracker.heads
                         ))[:100],
                     )
+                except defer.TimeoutError:
+                    print 'Share request timed out!'
+                    continue
                 except:
                     log.err(None, 'in download_shares:')
                     continue