summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/controller/controller.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ryu/controller/controller.py b/ryu/controller/controller.py
index 08304d21..1ae72876 100644
--- a/ryu/controller/controller.py
+++ b/ryu/controller/controller.py
@@ -194,6 +194,10 @@ class Datapath(ofproto_protocol.ProtocolDesc):
ret = self.socket.recv(required_len)
except SocketTimeout:
continue
+ except ssl.SSLError:
+ # eventlet throws SSLError (which is a subclass of IOError)
+ # on SSL socket read timeout; re-try the loop in this case.
+ continue
except (EOFError, IOError):
break