• Felix Lange's avatar
    p2p: track write errors and prevent writes during shutdown · 8dcbdcad
    Felix Lange authored
    As of this commit, we no longer rely on the protocol handler to report
    write errors in a timely fashion. When a write fails, shutdown is
    initiated immediately and no new writes can start. This will also
    prevent new writes from starting after Server.Stop has been called.
    8dcbdcad
peer.go 7.82 KB