|
|
@ -58,7 +58,7 @@ cdef int _get_metadata(void *state, |
|
|
|
|
|
|
|
|
|
|
|
cdef void _destroy(void *state) except * with gil: |
|
|
|
cdef void _destroy(void *state) except * with gil: |
|
|
|
cpython.Py_DECREF(<object>state) |
|
|
|
cpython.Py_DECREF(<object>state) |
|
|
|
grpc_shutdown_blocking() |
|
|
|
grpc_shutdown() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cdef class MetadataPluginCallCredentials(CallCredentials): |
|
|
|
cdef class MetadataPluginCallCredentials(CallCredentials): |
|
|
@ -124,7 +124,7 @@ cdef class SSLSessionCacheLRU: |
|
|
|
def __dealloc__(self): |
|
|
|
def __dealloc__(self): |
|
|
|
if self._cache != NULL: |
|
|
|
if self._cache != NULL: |
|
|
|
grpc_ssl_session_cache_destroy(self._cache) |
|
|
|
grpc_ssl_session_cache_destroy(self._cache) |
|
|
|
grpc_shutdown_blocking() |
|
|
|
grpc_shutdown() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cdef class SSLChannelCredentials(ChannelCredentials): |
|
|
|
cdef class SSLChannelCredentials(ChannelCredentials): |
|
|
@ -190,7 +190,7 @@ cdef class ServerCertificateConfig: |
|
|
|
def __dealloc__(self): |
|
|
|
def __dealloc__(self): |
|
|
|
grpc_ssl_server_certificate_config_destroy(self.c_cert_config) |
|
|
|
grpc_ssl_server_certificate_config_destroy(self.c_cert_config) |
|
|
|
gpr_free(self.c_ssl_pem_key_cert_pairs) |
|
|
|
gpr_free(self.c_ssl_pem_key_cert_pairs) |
|
|
|
grpc_shutdown_blocking() |
|
|
|
grpc_shutdown() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cdef class ServerCredentials: |
|
|
|
cdef class ServerCredentials: |
|
|
@ -206,7 +206,7 @@ cdef class ServerCredentials: |
|
|
|
def __dealloc__(self): |
|
|
|
def __dealloc__(self): |
|
|
|
if self.c_credentials != NULL: |
|
|
|
if self.c_credentials != NULL: |
|
|
|
grpc_server_credentials_release(self.c_credentials) |
|
|
|
grpc_server_credentials_release(self.c_credentials) |
|
|
|
grpc_shutdown_blocking() |
|
|
|
grpc_shutdown() |
|
|
|
|
|
|
|
|
|
|
|
cdef const char* _get_c_pem_root_certs(pem_root_certs): |
|
|
|
cdef const char* _get_c_pem_root_certs(pem_root_certs): |
|
|
|
if pem_root_certs is None: |
|
|
|
if pem_root_certs is None: |
|
|
|