r127 - /debtorrent/trunk/DebTorrent/BT1/Encrypter.py

camrdale-guest at users.alioth.debian.org camrdale-guest at users.alioth.debian.org
Sun Jun 24 10:36:59 UTC 2007


Author: camrdale-guest
Date: Sun Jun 24 10:36:59 2007
New Revision: 127

URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=127
Log:
Fix a VERY BAD bittornado bug that caused incoming launchmany connections to be dropped.

Modified:
    debtorrent/trunk/DebTorrent/BT1/Encrypter.py

Modified: debtorrent/trunk/DebTorrent/BT1/Encrypter.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/BT1/Encrypter.py?rev=127&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/BT1/Encrypter.py (original)
+++ debtorrent/trunk/DebTorrent/BT1/Encrypter.py Sun Jun 24 10:36:59 2007
@@ -105,7 +105,8 @@
             else:
                 self.encrypted = False
                 self.options = options
-                self.write(self.Encoder.my_id)
+                self.write(chr(len(protocol_name)) + protocol_name + 
+                           option_pattern + self.Encoder.download_id + self.Encoder.my_id)
                 self.next_len, self.next_func = 20, self.read_peer_id
         else:
             self.encrypted = None       # don't know yet




More information about the Debtorrent-commits mailing list