Make ENOTCONN non-fatal error, because of iOS.

GitOrigin-RevId: a218c47dc8972e0813318d2653635b72ecb720ce
This commit is contained in:
levlam 2018-04-04 22:37:46 +03:00
parent e9f3bcbd4d
commit c29ff63fa6

View File

@ -358,12 +358,12 @@ Result<size_t> Fd::read(MutableSlice slice) {
case ENXIO:
case EFAULT:
case EINVAL:
case ENOTCONN:
LOG(FATAL) << error;
UNREACHABLE();
default:
LOG(WARNING) << error;
// fallthrough
case ENOTCONN:
case EIO:
case ENOBUFS:
case ENOMEM: