Message ID | 20161204102817.18056-1-ligs@dtdream.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/python/ovs/stream.py b/python/ovs/stream.py index b43e105..68dffbc 100644 --- a/python/ovs/stream.py +++ b/python/ovs/stream.py @@ -451,6 +451,8 @@ class SSLStream(Stream): self.socket.do_handshake() except SSL.WantReadError: return errno.EAGAIN + except SSL.SysCallError as e: + return ovs.socket_util.get_exception_errno(e) return 0 @@ -459,6 +461,8 @@ class SSLStream(Stream): return super(SSLStream, self).recv(n) except SSL.WantReadError: return (errno.EAGAIN, "") + except SSL.ZeroReturnError as e: + return (0, "") def send(self, buf): try: