Skip to content

Commit

Permalink
Revert "Fix error handling in memifproxy (networkservicemesh#403)"
Browse files Browse the repository at this point in the history
This reverts commit 792a420.
  • Loading branch information
Mixaster995 committed Oct 13, 2021
1 parent d9d4692 commit 8e2dc61
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ func (p *proxyListener) accept() {
defer func() { _ = p.Close() }()
for {
in, err := p.listener.Accept()
if optErr, ok := err.(*net.OpError); !ok || !optErr.Temporary() {
if optErr, ok := err.(*net.OpError); ok && !optErr.Temporary() {
// TODO - perhaps log this?
return
}
out, err := net.Dial(memifNetwork, p.socketFilename)
if optErr, ok := err.(*net.OpError); !ok || !optErr.Temporary() {
if optErr, ok := err.(*net.OpError); ok && !optErr.Temporary() {
_ = in.Close()
// TODO - perhaps log this?
return
Expand Down

0 comments on commit 8e2dc61

Please sign in to comment.