Jae Kwon
fb64314d1c
Review from Anton
7 years ago
Thomas Corbière
2644a529f0
Fix lint errors ( #1390 )
* use increment and decrement operators.
* remove unnecessary else branches.
* fix package comment with leading space.
* fix receiver names.
* fix error strings.
* remove omittable code.
* remove redundant return statement.
* Revert changes (code is generated.)
* use cfg as receiver name for all config-related types.
* use lsi as the receiver name for the LastSignedInfo type.
7 years ago
Anton Kaliaev
22949e6dfd
new tmlibs Parallel implementation
7 years ago
Jae Kwon
901b456151
P2P now works with Amino
7 years ago
Jae Kwon
ced74251e9
maxPacketMsg -> packetMsgMax...
7 years ago
Jae Kwon
6c345f9fa2
First stab: p2p/conn
7 years ago
Anton Kaliaev
fc585bcdec
do not block when writing to pongTimeoutCh
Refs #1205
7 years ago
Anton Kaliaev
22b038810a
do not block in recvRoutine
7 years ago
Anton Kaliaev
45750e1b29
fix race by sending signal instead of stopping pongTimer
7 years ago
Anton Kaliaev
26419fba28
refactor code plus add one more test
* extract stopPongTimer method
* TestMConnectionMultiplePings
7 years ago
Anton Kaliaev
ac0123d249
drain pongTimeoutCh and pongTimer's channel to prevent leaks
7 years ago
Anton Kaliaev
f4ff66de30
rewrite pong timer to use time.AfterFunc
7 years ago
Anton Kaliaev
747b73cb95
fix merge conflicts
7 years ago
Anton Kaliaev
3ae738f453
increase timeouts
7 years ago
Anton Kaliaev
5834a59816
read ping
7 years ago
Anton Kaliaev
b28b76ddf7
rename pingTimeout to pingInterval, pongTimer is now time.Timer
7 years ago
zbo14
91e4f4b786
ping/pong timeout in config
7 years ago
zbo14
9b554fb2c4
switch test modification
7 years ago
zbo14
f97ead4f5f
prep for merge
7 years ago
zbo14
5af22d6ee6
remove SwitchEventNewPeer, SwitchEventDonePeer
7 years ago
zbo14
1d16df6a92
add test, TrySend in broadcast
7 years ago
Anton Kaliaev
3f9aa8d8fa
document that msgBytes in p2p/connection change
7 years ago
Anton Kaliaev
d6d1f8512d
do not reset pingTimer
don't bother with this "only ping when we havent heard from them". lets
just always ping every peer from the sendRoutine every 10s no matter
what. if they dont pong within pongTimeout, disconnect :)
7 years ago
Ethan Buchman
7640e6a29f
add some p2p TODOs
7 years ago
Ethan Buchman
426379dc47
remove use of wire/nowriter
7 years ago
Ethan Buchman
baff4bd8cc
p2p/conn: better handling for some stop conditions
7 years ago
Ethan Buchman
44e967184a
p2p: tmconn->conn and types->p2p
7 years ago
Ethan Buchman
5b5cbaa66a
p2p: use sub dirs
7 years ago
Ethan Buchman
c2f97e6454
p2p: seed mode fixes from rebase and review
7 years ago
Ethan Buchman
6e823c6e87
p2p: support addr format ID@IP:PORT
7 years ago
Ethan Buchman
14c812a39c
tmlibs timer fix
7 years ago
Ethan Buchman
cb3ac6987e
remove some debugs
7 years ago
Ethan Buchman
5d04ccbe51
excessive logging. update tmlibs for timer fix
7 years ago
Ethan Buchman
d7cb2f850d
more logs in p2p
7 years ago
Ethan Buchman
bfe0a4a8ac
more logging
7 years ago
Ethan Buchman
0ec7909ec3
more logging in p2p and consensus
7 years ago
Petabyte Storage
8be708fe5b
fix spelling and makefile gometalinter.v2
7 years ago
Ethan Buchman
e101aa9fc8
fix for legacy gowire
7 years ago
Zach Ramsay
d033470817
lil fixes
7 years ago
Zach Ramsay
15651a931e
linting errors: tackle p2p package
7 years ago
Zach Ramsay
1721543e5c
linting: apply misspell
7 years ago
Petabyte Storage
59b3dcb5cf
normalize priority and id and remove pointers in ChannelDescriptor
7 years ago
Guanghua Guo
b5708825a7
Failed to compile comment code
7 years ago
Petabyte Storage
3863885c71
WIP: begin parallel refactoring with go-wire Write methods and MConnection
7 years ago
Ethan Buchman
37ce171061
p2p/connetion: remove panics, test error cases
7 years ago
Ethan Buchman
88138c38cf
mempool: reactor test
7 years ago
Ethan Buchman
daa258ea6d
p2p: put maxMsgPacketPayloadSize, recvRate, sendRate in config
Updates #628
7 years ago
Ethan Buchman
75df0d91ba
comments from review
8 years ago
Adrian Brink
b07d01f102
Add more comments on public functions and extra logging during 'enterPrevote'
Signed-off-by: Adrian Brink <adrian@brink-holdings.com>
8 years ago
Ethan Buchman
3c10f7a122
add p2p flush throttle to config
8 years ago