diff options
author | walter-weinmann <walter.weinmann@gmail.com> | 2017-09-18 20:32:10 +0200 |
---|---|---|
committer | James E. King, III <jking@apache.org> | 2017-09-21 07:06:32 -0700 |
commit | faa2a3e3040fa5f329033900e7e654cdee10d272 (patch) | |
tree | 0000f72eefae483b4560562e5eb579e930a8968f /tutorial/py | |
parent | 699b5bc47a90c47cf8954c4e8900af44990d1f0f (diff) | |
download | thrift-faa2a3e3040fa5f329033900e7e654cdee10d272.tar.gz |
THRIFT-4312 Erlang client cannot connect to Python server: exception
error: econnrefused
This closes #1365
Diffstat (limited to 'tutorial/py')
-rwxr-xr-x | tutorial/py/PythonServer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tutorial/py/PythonServer.py b/tutorial/py/PythonServer.py index eb132a10a..7c590ba1c 100755 --- a/tutorial/py/PythonServer.py +++ b/tutorial/py/PythonServer.py @@ -85,7 +85,7 @@ class CalculatorHandler: if __name__ == '__main__': handler = CalculatorHandler() processor = Calculator.Processor(handler) - transport = TSocket.TServerSocket(port=9090) + transport = TSocket.TServerSocket(host='127.0.0.1', port=9090) tfactory = TTransport.TBufferedTransportFactory() pfactory = TBinaryProtocol.TBinaryProtocolFactory() |