Commit 1b4ecf6f authored by Luke Macken's avatar Luke Macken

Use a reliable ReverseConnection by default

parent 3242a44e
......@@ -112,7 +112,8 @@ class PyrasiteIPC(object):
if line.startswith('#'):
continue
line = line.replace('port = 9001', 'port = %d' % self.port)
line = line.replace('reliable = False', 'reliable = True')
if not self.reliable:
line = line.replace('reliable = True', 'reliable = False')
tmp.write(line)
tmp.write('ReversePythonConnection().start()\n')
......
......@@ -37,6 +37,7 @@ class ReverseConnection(threading.Thread, pyrasite.PyrasiteIPC):
host = 'localhost'
port = 9001
reliable = True
def __init__(self, host=None, port=None):
super(ReverseConnection, self).__init__()
......
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