Fix aio server

pull/25365/head
Richard Belleville 4 years ago
parent 23f6d4c75f
commit 2c35187473
  1. 3
      src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi
  2. 2
      src/python/grpcio_tests/tests/unit/_cython/_common.py

@ -822,7 +822,8 @@ cdef class AioServer:
init_grpc_aio()
# NOTE(lidiz) Core objects won't be deallocated automatically.
# If AioServer.shutdown is not called, those objects will leak.
self._server = Server(options)
# TODO(rbellevi): Support xDS in aio server.
self._server = Server(options, False)
grpc_server_register_completion_queue(
self._server.c_server,
global_completion_queue(),

@ -96,7 +96,7 @@ class RpcTest(object):
def setUp(self):
self.server_completion_queue = cygrpc.CompletionQueue()
self.server = cygrpc.Server([(b'grpc.so_reuseport', 0)])
self.server = cygrpc.Server([(b'grpc.so_reuseport', 0)], False)
self.server.register_completion_queue(self.server_completion_queue)
port = self.server.add_http2_port(b'[::]:0')
self.server.start()

Loading…
Cancel
Save