Don't hide Timeout on errors from underying net conn.

This commit is contained in:
Gary Burd 2014-11-06 16:56:58 -08:00
parent 7d2ea39ebc
commit ea78a26f80
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ var (
func hideTempErr(err error) error {
if e, ok := err.(net.Error); ok && e.Temporary() {
err = struct{ error }{err}
err = &netError{msg: e.Error(), timeout: e.Timeout()}
}
return err
}