forked from shaba/openuds
merged ipc from actor 2.1
This commit is contained in:
commit
c1ac0d4734
@ -36,6 +36,7 @@ import sys
|
|||||||
import six
|
import six
|
||||||
import traceback
|
import traceback
|
||||||
import pickle
|
import pickle
|
||||||
|
import errno
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from udsactor.utils import toUnicode
|
from udsactor.utils import toUnicode
|
||||||
@ -419,8 +420,10 @@ class ClientIPC(threading.Thread):
|
|||||||
self.messageReceived()
|
self.messageReceived()
|
||||||
|
|
||||||
except socket.error as e:
|
except socket.error as e:
|
||||||
|
if e.errno == errno.EINTR:
|
||||||
|
continue # Ignore interrupted system call
|
||||||
logger.error('Communication with server got an error: {}'.format(toUnicode(e.strerror)))
|
logger.error('Communication with server got an error: {}'.format(toUnicode(e.strerror)))
|
||||||
self.running = False
|
# self.running = False
|
||||||
return
|
return
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
tb = traceback.format_exc()
|
tb = traceback.format_exc()
|
||||||
|
Loading…
Reference in New Issue
Block a user