Ethan Buchman
17124989a9
Merge pull request #10 from tendermint/pex-reactor-fixes-#9
Pex reactor fixes #9
8 years ago
Ethan Buchman
75bad132fc
msgCountByPeer is a CMap
8 years ago
Ethan Buchman
391c738959
update comment about outbound peers and addrbook
8 years ago
Anton Kaliaev
8655e2456e
it is non-deterministic (could fail sometimes)
8 years ago
Anton Kaliaev
17ec70fc09
revert 2710873
8 years ago
Anton Kaliaev
9ce71013df
revert e448199
8 years ago
Anton Kaliaev
5ab8ca0868
fix race
8 years ago
Anton Kaliaev
4c0d1d3ad2
return wg to addrbook
8 years ago
Anton Kaliaev
0277e52bd5
fix merge
8 years ago
Anton Kaliaev
cf18bf2966
add public RemoveAddress API
after discussion with @ebuchman (https://github.com/tendermint/go-p2p/pull/10#discussion_r96471729 )
8 years ago
Anton Kaliaev
324293f4cb
note on preventing abuse [ci skip]
8 years ago
Anton Kaliaev
52d9cf080e
make GoLint happy
8 years ago
Anton Kaliaev
590efc1040
call saveToFile OnStop
This is better than waiting because while we wait, anything could happen
(crash, timeout of the code who's using addrbook, ...). If we save
immediately, we have much greater chances of success.
8 years ago
Anton Kaliaev
5eeaffd38e
do not create file, just temp dir
8 years ago
Anton Kalyaev
07e7b98c70
improve ensurePeers routine
optimizations:
- if we move peer to the old bucket as soon as connected and pick only
from new group, we can skip alreadyConnected check
8 years ago
Anton Kalyaev
873d34157d
prevent abuse from peers
8 years ago
Anton Kalyaev
47df1fb7d4
test PEXReactor#Receive
8 years ago
Anton Kalyaev
1a59b6a3b4
replace repeate timer with simple ticker
no need for repeate timer here (no need for goroutine safety)
8 years ago
Anton Kalyaev
0109f1e524
test ensurePeers goroutine
8 years ago
Anton Kalyaev
37d5a2cf3e
implement RemovePeer for PEXReactor
8 years ago
Anton Kalyaev
3af7c67757
add Dockerfile
8 years ago
Anton Kalyaev
26f661a5dd
prefer short names
8 years ago
Anton Kalyaev
057cfb30f1
remove unused error
8 years ago
Ethan Buchman
e05052b079
update glide
8 years ago
Ethan Buchman
7d5b62b61f
CHANGELOG and version bump
8 years ago
Ethan Buchman
e6b7e66bbe
Merge pull request #23 from tendermint/more-tests
More tests
8 years ago
Anton Kaliaev
2ac69176e1
add a comment for MConnection#CanSend
also add a note to TestMConnectionSend
8 years ago
Anton Kaliaev
fbedb426ce
tests for NetAddress
8 years ago
Anton Kaliaev
6dc113aa80
[netaddress] panic only when normal run
8 years ago
Anton Kaliaev
ebe23f1379
refactor MConnection#sendBytes
8 years ago
Anton Kaliaev
06d219db8e
test peer with no auth enc
8 years ago
Anton Kaliaev
1d01f6af98
2 kinds of peers: outbound and inbound
8 years ago
Anton Kaliaev
715b8c629f
use the peer struct to simulate remote peer
8 years ago
Anton Kaliaev
a63e1bb2dc
fix possible panic
8 years ago
Anton Kaliaev
5965578c56
[fuzz] only one way to set config variables
8 years ago
Anton Kaliaev
7dcc3dbcd1
test peer
8 years ago
Ethan Buchman
c39e001a95
Merge pull request #22 from tendermint/persistent
fix closing conn
8 years ago
Ethan Buchman
8067cdb5f2
fix closing conn
8 years ago
Ethan Buchman
ebd3929c0d
Merge pull request #18 from tendermint/13-reconnect-to-seeds
persistent peers (Refs 13)
8 years ago
Ethan Buchman
9a1a6c56b4
dont expose makePersistent
8 years ago
Ethan Buchman
b6f744c732
fix AddPeerWithConnection
8 years ago
Ethan Buchman
a9bb6734e7
SetDeadline for authEnc. Stop peer if Add fails
8 years ago
Anton Kaliaev
8bb3a2e1d7
persistent peers (Refs #13 )
8 years ago
Anton Kaliaev
f88d56b2f8
add glide
8 years ago
Anton Kaliaev
5b0489cdb4
use plain struct instead of go-config
8 years ago
Anton Kaliaev
b8a939a894
test non persistent mconnection
8 years ago
Anton Kaliaev
2b02843453
remove unused const
8 years ago
Anton Kaliaev
5be72672fe
use golang time datatype instead of time units in name
8 years ago
Anton Kaliaev
549d3bd09a
tests for MConnection
8 years ago
Anton Kaliaev
868017cf1a
import go-common as cmn
8 years ago