forked from mirror/websocket
Don't hide Timeout on errors from underying net conn.
This commit is contained in:
parent
7d2ea39ebc
commit
ea78a26f80
2
conn.go
2
conn.go
|
@ -108,7 +108,7 @@ var (
|
||||||
|
|
||||||
func hideTempErr(err error) error {
|
func hideTempErr(err error) error {
|
||||||
if e, ok := err.(net.Error); ok && e.Temporary() {
|
if e, ok := err.(net.Error); ok && e.Temporary() {
|
||||||
err = struct{ error }{err}
|
err = &netError{msg: e.Error(), timeout: e.Timeout()}
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue