1. 13 4月, 2015 1 次提交
  2. 10 4月, 2015 2 次提交
    • F
      p2p: improve disconnect signaling at handshake time · b3c058a9
      Felix Lange 提交于
      As of this commit, p2p will disconnect nodes directly after the
      encryption handshake if too many peer connections are active.
      Errors in the protocol handshake packet are now handled more politely
      by sending a disconnect packet before closing the connection.
      b3c058a9
    • F
      p2p: fix Peer shutdown deadlocks · f1d710af
      Felix Lange 提交于
      There were multiple synchronization issues in the disconnect handling,
      all caused by the odd special-casing of Peer.readLoop errors. Remove the
      special handling of read errors and make readLoop part of the Peer
      WaitGroup.
      
      Thanks to @Gustav-Simonsson for pointing at arrows in a diagram
      and playing rubber-duck.
      f1d710af
  3. 19 3月, 2015 1 次提交
    • F
      p2p: use package rlp to encode messages · 5ba51594
      Felix Lange 提交于
      Message encoding functions have been renamed to catch any uses.
      The switch to the new encoder can cause subtle incompatibilities.
      If there are any users outside of our tree, they will at least be
      alerted that there was a change.
      
      NewMsg no longer exists. The replacements for EncodeMsg are called
      Send and SendItems.
      5ba51594
  4. 04 3月, 2015 5 次提交
  5. 19 2月, 2015 1 次提交
    • F
      p2p: disable encryption handshake · 73f94f37
      Felix Lange 提交于
      The diff is a bit bigger than expected because the protocol handshake
      logic has moved out of Peer. This is necessary because the protocol
      handshake will have custom framing in the final protocol.
      73f94f37
  6. 14 2月, 2015 1 次提交
  7. 06 2月, 2015 16 次提交