THRIFT-3712 TTornadoServer cannot handle IPv6 address

This closes #924
This commit is contained in:
Nobuaki Sukegawa 2016-03-05 14:47:09 +09:00
parent d9b4425f68
commit 5bac5ba8bf

View File

@ -164,7 +164,7 @@ class TTornadoServer(tcpserver.TCPServer):
@gen.coroutine
def handle_stream(self, stream, address):
host, port = address
host, port = address[:2]
trans = TTornadoStreamTransport(host=host, port=port, stream=stream,
io_loop=self.io_loop)
oprot = self._oprot_factory.getProtocol(trans)