Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

THRIFT-1049. py: Allow for TServerSocket python library to bind to a …

…specific host

This patch adds a new host argument to TServerSocket that allows it to bind to a specific host.

Patch: Jake Farrell

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1063806 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit e0498c984eae35b847f978cf24cf5dd88a16d3e9 1 parent 6a084da
Bryan Duxbury authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/py/src/transport/TSocket.py
View
4 lib/py/src/transport/TSocket.py
@@ -126,8 +126,8 @@ def flush(self):
class TServerSocket(TSocketBase, TServerTransportBase):
"""Socket implementation of TServerTransport base."""
- def __init__(self, port=9090, unix_socket=None):
- self.host = None
+ def __init__(self, host=None, port=9090, unix_socket=None):
+ self.host = host
self.port = port
self._unix_socket = unix_socket
self.handle = None
Please sign in to comment.
Something went wrong with that request. Please try again.