diff options
author | Felix Lange <fjl@twurst.com> | 2015-06-15 19:42:44 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-06-15 21:03:46 +0800 |
commit | 8dcbdcad0a92b053c7a5da2dc00b679c0044d050 (patch) | |
tree | 8468e2c73f974fa0cec2ab1e01586104d937a0fa /p2p/peer_test.go | |
parent | 6f5c6150b7060b6b2ee68ac95b30f46c5c2c7f90 (diff) | |
download | go-tangerine-8dcbdcad0a92b053c7a5da2dc00b679c0044d050.tar go-tangerine-8dcbdcad0a92b053c7a5da2dc00b679c0044d050.tar.gz go-tangerine-8dcbdcad0a92b053c7a5da2dc00b679c0044d050.tar.bz2 go-tangerine-8dcbdcad0a92b053c7a5da2dc00b679c0044d050.tar.lz go-tangerine-8dcbdcad0a92b053c7a5da2dc00b679c0044d050.tar.xz go-tangerine-8dcbdcad0a92b053c7a5da2dc00b679c0044d050.tar.zst go-tangerine-8dcbdcad0a92b053c7a5da2dc00b679c0044d050.zip |
p2p: track write errors and prevent writes during shutdown
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.
Diffstat (limited to 'p2p/peer_test.go')
0 files changed, 0 insertions, 0 deletions