refactor: LocalConnection.CheckFatal be gone!
use Shutdown instead, which is in the Connection interface, thus further reducing dependency on LocalConnection.
This commit is contained in:
1 parent
9a27299562
commit
99525ebf85
5 files changed
+16
-23
No files matched your search
+1
-1
@@ -349,7 +349,7 @@ func (fwd *Forwarder) flush() {
|
||||
} else if PosixError(err) == syscall.ENOBUFS {
|
||||
// TODO handle this better
|
||||
} else {
|
||||
fwd.conn.CheckFatal(err)
|
||||
fwd.conn.Shutdown(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user