diff options
author | 2018-06-06 21:57:39 +0000 | |
---|---|---|
committer | 2018-06-06 21:57:39 +0000 | |
commit | 9c86b20bacbb92ed9b8b43b56b2e2fdefcecedae (patch) | |
tree | 302f8a03f0bc7bc4d44da461a0b7a8e2538f0d21 /src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi | |
parent | ca7ba4d0ac3ab452c5db60befc8be37fd6e2339b (diff) |
Retain references to channel arguments
This works around issue 15662 which is not as easy to implement as I
would prefer it to be.
Diffstat (limited to 'src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi')
-rw-r--r-- | src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi index 72e74e84ae..8c37a3cf85 100644 --- a/src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi +++ b/src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi @@ -390,6 +390,7 @@ cdef class Channel: def __cinit__( self, bytes target, object arguments, ChannelCredentials channel_credentials): + arguments = () if arguments is None else tuple(arguments) grpc_init() self._state = _ChannelState() self._vtable.copy = &_copy_pointer @@ -410,6 +411,7 @@ cdef class Channel: grpc_completion_queue_create_for_next(NULL)) self._state.c_connectivity_completion_queue = ( grpc_completion_queue_create_for_next(NULL)) + self._arguments = arguments def target(self): cdef char *c_target |