Filter out broken pipe errors

后端 未结 3 1239
挽巷
挽巷 2021-01-11 11:46

I\'m getting an error returned from an io.Copy call, to which I\'ve passed a socket (TCPConn) as the destination. It\'s expected that

3条回答
  •  失恋的感觉
    2021-01-11 11:59

    Having all but an error interface is enough to perform a type assertion or a type switch to reveal the concrete type held by the interface.

提交回复
热议问题