summaryrefslogtreecommitdiffstats
path: root/module/remote/thriftbackend/Socket.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote/thriftbackend/Socket.py')
-rw-r--r--module/remote/thriftbackend/Socket.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/remote/thriftbackend/Socket.py b/module/remote/thriftbackend/Socket.py
index 2243f9df2..b9fa7edbf 100644
--- a/module/remote/thriftbackend/Socket.py
+++ b/module/remote/thriftbackend/Socket.py
@@ -26,14 +26,14 @@ class SecureSocketConnection:
def accept(self):
connection, address = self.__dict__["connection"].accept()
return SecureSocketConnection(connection), address
-
+
def send(self, buff):
try:
return self.__dict__["connection"].send(buff)
except WantReadError:
sleep(0.1)
return self.send(buff)
-
+
def recv(self, buff):
try:
return self.__dict__["connection"].recv(buff)
@@ -86,7 +86,7 @@ class Socket(TSocket):
buff = ''
else:
raise
-
+
if not len(buff):
raise TTransportException(type=TTransportException.END_OF_FILE, message='TSocket read 0 bytes')
return buff