Commit aea91c5b authored by olivier R-D's avatar olivier R-D

do not stop client for protocol error, but try again

parent 5b146814
...@@ -10,6 +10,7 @@ from functools import partial ...@@ -10,6 +10,7 @@ from functools import partial
from opcua import ua from opcua import ua
from opcua.common import utils from opcua.common import utils
from opcua.common.uaerrors import UaError
class UASocketClient(object): class UASocketClient(object):
...@@ -94,6 +95,8 @@ class UASocketClient(object): ...@@ -94,6 +95,8 @@ class UASocketClient(object):
except ua.utils.SocketClosedException: except ua.utils.SocketClosedException:
self.logger.info("Socket has closed connection") self.logger.info("Socket has closed connection")
break break
except UaError:
self.logger.exception("Protocol Error")
self.logger.info("Thread ended") self.logger.info("Thread ended")
def _receive(self): def _receive(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment