Matthias Radestock
7cfb79cfc1
close connection when failing to decrypt packets
...
Since we may never recover from that if nonces got out of sync.
Closes #274 .
2014-12-28 19:52:56 +00:00
Matthias Radestock
f304543ddf
refactor: move definition of Peer and related types
2014-12-25 14:02:53 +00:00
Matthias Radestock
5e6bb8ee67
cosmetic: more logical field order
2014-12-25 13:57:31 +00:00
Matthias Radestock
3ba5a5024e
refactor: Peer no longer needs Router
...
Hooray!
2014-12-25 13:05:22 +00:00
Matthias Radestock
465915d7d4
refactor: split out LocalPeer
...
This has been a source of confusion for a long time.
2014-12-25 12:57:45 +00:00
Matthias Radestock
059360416a
gofmt
2014-12-25 11:27:42 +00:00
Matthias Radestock
71cd83bf20
refactor: move ConnectionMaker and related types
2014-12-24 19:46:12 +00:00
Matthias Radestock
03b338a252
remove cruft
2014-12-24 19:42:49 +00:00
Matthias Radestock
2b2f47c031
refactor: rename PeerCache to Peers
...
It was never much of a cache, and that aspect of it is certainly not
its defining characteristic.
2014-12-24 19:23:43 +00:00
Matthias Radestock
e8f836ad85
refactor: rename 'Topology' to 'Routes'
...
Since that is what it is. By contrast, when the docs talk about
topology they actually refer to the peer connectivity graph.
2014-12-24 19:12:01 +00:00
Matthias Radestock
aa5fc62184
remove cruft
2014-12-24 16:06:31 +00:00
Matthias Radestock
e850127ed4
git rid of heartbeater goroutine
...
...by moving the logic into the connection actor goroutine.
The heartbeater goroutine was doing a lot more than just heartbeating;
namely it also had tickers for triggering a ProtocolFetchAll and
initiating a fragmentation test. Furhermore, ensureHeartbeats also
spawned the forwarders.
So this was quite a mix of functionality, and, furthermore, most of it
related quite closely to the connection actor. So moving the
functionality into that simplifies the code.
In the process we also fix #294 .
2014-12-23 22:01:03 +00:00
Bryan Boreham
4eeeabcf56
Cosmetic changes applied by
2014-12-01 16:51:16 +00:00
Matthias Radestock
4ddfc47448
don't trip over truncated udp packets
...
and log such events, plus any other errors during decoding, nicely,
including the connection on which this occured.
Closes #123 .
2014-10-15 21:03:15 +01:00
Matthias Radestock
a587fef9c4
fix package name following move
2014-10-15 15:20:49 +01:00
Matthias Radestock
e2fd1fda31
move router code
2014-10-15 15:07:42 +01:00