p2p connections now have a 100 second timeout
[p2pool.git] / p2pool / bitcoin / p2p.py
index e6788ec..d54a870 100644 (file)
@@ -70,6 +70,11 @@ class BaseProtocol(protocol.Protocol):
                 print 'RECV', command, repr(payload2)[:100]
                 log.err(None, 'Error handling message: (see RECV line)')
                 continue
+            
+            self.gotPacket()
+    
+    def gotPacket(self):
+        pass
     
     def sendPacket(self, command, payload2):
         if len(command) >= 12: