Bugfix: handle incoming packets > 64k
authorTomas Abrahamsson <[email protected]>
Sat, 12 Feb 2011 01:55:40 +0000 (12 02:55 +0100)
committerTomas Abrahamsson <[email protected]>
Sat, 12 Feb 2011 01:55:40 +0000 (12 02:55 +0100)
In erl_node_conn.py, there was a bug which prevented handling of
packets larger than 64kB (not counting header). This is fixed.
Found using QuickCheck.

py_interface/erl_node_conn.py

index 2910e0f..24bc065 100644 (file)
@@ -684,7 +684,7 @@ class ErlNodeInConnection(erl_async_conn.ErlAsyncPeerConnection):
             ownCookie = self._opts.GetCookie()
             if CheckDigest(peersDigest, self._challengeToPeer, ownCookie):
                 self._SendChallengeAck(peersChallenge)
-                self._packetLenSIze = 4
+                self._packetLenSize = 4
                 self._state = self._STATE_CONNECTED
                 t = self._opts.GetNetTickTime()
                 self._tickTimers = Ticker(t, self._Tick, self._NoResponse)