Commit df32e53a authored by Steven Fackler's avatar Steven Fackler
Browse files

Grab errno for directstream want errors

parent 69cbd145
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -1046,13 +1046,8 @@ impl<S> DirectStream<S> {
                    err
                }
            }
            LibSslError::ErrorWantWrite => {
                SslError::StreamError(io::Error::new(io::ErrorKind::TimedOut,
                                                     "socket write timed out"))
            }
            LibSslError::ErrorWantRead => {
                SslError::StreamError(io::Error::new(io::ErrorKind::TimedOut,
                                                     "socket read timed out"))
            LibSslError::ErrorWantWrite | LibSslError::ErrorWantRead => {
                SslError::StreamError(io::Error::last_os_error())
            }
            err => panic!("unexpected error {:?} with ret {}", err, ret),
        }