14 """Tests that a channel will reconnect if a connection is dropped"""
27 _REQUEST = b
'\x00\x00\x00'
28 _RESPONSE = b
'\x00\x00\x01'
30 _UNARY_UNARY =
'/test/UnaryUnary'
40 server_pool = logging_pool.pool(test_constants.THREAD_CONCURRENCY)
45 options = ((
'grpc.so_reuseport', 1),)
47 addr =
'{}:{}'.
format(host, port)
48 server =
grpc.server(server_pool, (handler,), options=options)
49 server.add_insecure_port(addr)
52 multi_callable = channel.unary_unary(_UNARY_UNARY)
59 server =
grpc.server(server_pool, (handler,), options=options)
60 server.add_insecure_port(addr)
67 if __name__ ==
'__main__':
69 unittest.main(verbosity=2)