Brian Tiger Chow
62d4f17057
misc: suppress logs to Debug (from Info)
10 years ago
Juan Batiz-Benet
381e99a375
p2p/protocol/identity: smarter tracking observed addrs
- time them out (already was doing that with addrbook)
- keep count to counter symmetric nats
10 years ago
Juan Batiz-Benet
3afbc9d8d9
logs: removed all log.Errors unhelpful to users
Let's save log.Error for things the user can take action on.
Moved all our diagnostics to log.Debug. We can ideally reduce them
even further.
10 years ago
Juan Batiz-Benet
46877f3f44
p2p/protocol/id: log version mismatch disconnects
10 years ago
Juan Batiz-Benet
884699e1e7
p2p/protocol/id: break on version mismatch.
TODOs:
- need to consolidate all the versioning stuff into one package
- need to do the version check as a handshake, before further
communication happens. we used to do this.
10 years ago
Juan Batiz-Benet
0f4e8fb460
AddrManager: use addr manager with smarter TTLs
This addr manager should seriously help with the addrsplosion
problem.
10 years ago
Brian Tiger Chow
9d4243027a
doc(p2p/mux) rm stale comment
10 years ago
Brian Tiger Chow
71877e0142
fix(mux) hold lock when reading default handler field
10 years ago
Jeromy
704625bceb
fix nil pointer panic on version strings in ID message
10 years ago
Brian Tiger Chow
9510082ee2
remove message
10 years ago
Juan Batiz-Benet
77a9168a18
p2p/id: SET listen addrs, clearing old ones.
10 years ago
Juan Batiz-Benet
e598cf2b77
dropped down log.Errors
10 years ago
Juan Batiz-Benet
ae0386cfba
user friendliness in logs + output
10 years ago
Juan Batiz-Benet
d7a5d2ecd2
p2p: own addresses gotten from host
10 years ago
Juan Batiz-Benet
bdda7ff6b6
p2p/proto/id: more helpful log
10 years ago
Juan Batiz-Benet
07d52b3351
p2p/proto/mux: make log more useful
10 years ago
Juan Batiz-Benet
958eecfe46
p2p/proto/identify: use observed listen addrs
This commit finally makes use of the sent observed addrs.
If the connection's local address is from one of our
listen addrs, then the remote's observed addr is its
natted mapping, which is useful to us. For now, we add
it directly to our address book. (a future commit should
make addressbook addresses expire)
10 years ago
Brian Tiger Chow
bb0dc22735
eventlog: rm noisy low-signal statement
10 years ago
Brian Tiger Chow
f54e0c74ab
move generic packages to thirdparty (see thirdparty/README.md)
10 years ago
Brian Tiger Chow
b9011990f4
fix(mux) expose method to SetDefaultHandler
10 years ago
Brian Tiger Chow
8bbcc9992a
fix: privatize Mux fields
10 years ago
Brian Tiger Chow
aadb0bb3de
refactor(repo/config) move config under repo
10 years ago
Juan Batiz-Benet
e4f1221ba0
vendor identify pb
not sure how it wasnt an error
10 years ago
Juan Batiz-Benet
21580ccdab
swap net2 -> net
10 years ago
Juan Batiz-Benet
7c3202b11a
host interface + services
The separation of work in the p2p pkg is as follows:
- net implements the Swarm and connectivity
- protocol has muxer and header protocols
- host implements protocol muxing + services
- identify took over handshake completely! yay.
- p2p package works as a whole
10 years ago
Juan Batiz-Benet
2c6c64b2f6
mux: close stream on error
remove comment about spdystream. this is now
superceded by go-peerstream interface.
10 years ago
Juan Batiz-Benet
57b7903347
combined protocol and mux
10 years ago
Juan Batiz-Benet
a103a2dac0
protocol and muxer pkg
10 years ago