Ethan Buchman
0d5e0d2f13
* p2p/conn: FlushStop. Use in pex. Closes #2092 In seed mode, we call StopPeer immediately after Send. Since flushing msgs to the peer happens in the background, the peer connection is often closed before the messages are actually sent out. The new FlushStop method allows all msgs to first be written and flushed out on the conn before it is closed. * fix dummy peer * typo * fixes from review * more comments * ensure pex doesn't call FlushStop more than once FlushStop is not safe to call more than once, but we call it from Receive in a go-routine so Receive doesn't block. To ensure we only call it once, we use the lastReceivedRequests map - if an entry already exists, then FlushStop should already have been called and we can return. |
6 years ago | |
---|---|---|
.. | ||
addrbook.go | abci: localClient improvements & bugfixes & pubsub Unsubscribe issues (#2748) | 6 years ago |
addrbook_test.go | p2p/pex: Allow configured seed nodes to not be resolvable over DNS (#2129) | 6 years ago |
errors.go | p2p: AddressBook requires addresses to have IDs; Do not close conn immediately after sending pex addrs in seed mode (#2797) | 6 years ago |
file.go | libs: Remove usage of custom Fmt, in favor of fmt.Sprintf (#2199) | 6 years ago |
known_address.go | p2p/pex: some addrbook fixes | 7 years ago |
params.go | fix build and test | 7 years ago |
pex_reactor.go | p2p/conn: FlushStop. Use in pex. Closes #2092 (#2802) | 6 years ago |
pex_reactor_test.go | p2p/conn: FlushStop. Use in pex. Closes #2092 (#2802) | 6 years ago |
wire.go | P2P now works with Amino | 7 years ago |