mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
2428880058
* Update go-libp2p to 0.12.0 go-libp2p 0.12.0 made some significant changes to the stream interfaces around stream closing: * Close now closes in both directions and frees the stream. However, unlike FullClose did, it doesn't _wait_ for the remote peer to respond with an EOF. * To close for writing, call CloseWrite (like one would on a TCP connection, etc.). This patch: * Replaces calls to FullClose with Close where appropriate. * Replaces calls to Close with CloseWrite where appropriate. * Removes redundant Close calls. * Calls Reset to where appropriate to indicate that the request/response was aborted. Unlike Close, this will not flush and will not cause the remote peer to read an EOF. Instead, the remote peer will read an ErrReset error. * Ensures we always either close or reset streams. Send wasn't closing the stream on some error paths. * Now that stream closing is async, we explicitly wait for a response when "hanging up" on a peer (so we don't hang up before they receive our response/goodbye message). * update bazel * Gazelle * revert unintentional bazel workspace change * appease an overzealous linter * update to latest * Refactor encoder * gazelle * Gazelle Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> Co-authored-by: Nishant Das <nishdas93@gmail.com> Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> |
||
---|---|---|
.. | ||
encoder | ||
peers | ||
testing | ||
types | ||
addr_factory_test.go | ||
addr_factory.go | ||
broadcaster_test.go | ||
broadcaster.go | ||
BUILD.bazel | ||
config.go | ||
connection_gater_test.go | ||
connection_gater.go | ||
dial_relay_node_test.go | ||
dial_relay_node.go | ||
discovery_test.go | ||
discovery.go | ||
doc.go | ||
fork_test.go | ||
fork.go | ||
gossip_scoring_params.go | ||
gossip_topic_mappings_test.go | ||
gossip_topic_mappings.go | ||
handshake.go | ||
info.go | ||
interfaces.go | ||
iterator.go | ||
log.go | ||
monitoring.go | ||
options_test.go | ||
options.go | ||
parameter_test.go | ||
pubsub_filter_test.go | ||
pubsub_filter.go | ||
pubsub_test.go | ||
pubsub.go | ||
rpc_topic_mappings_test.go | ||
rpc_topic_mappings.go | ||
sender_test.go | ||
sender.go | ||
service_test.go | ||
service.go | ||
subnets_test.go | ||
subnets.go | ||
topics.go | ||
utils_test.go | ||
utils.go | ||
watch_peers.go |