Taking care of gevent.

pull/14919/head
Nicolas "Pixel" Noble 7 years ago
parent 00531b326e
commit 5426183de0
  1. 3
      src/python/grpcio/grpc/_cython/_cygrpc/grpc_gevent.pxd
  2. 3
      src/python/grpcio/grpc/_cython/_cygrpc/grpc_gevent.pyx

@ -83,8 +83,7 @@ cdef extern from "src/core/lib/iomgr/tcp_custom.h":
const grpc_sockaddr* addr, int* len);
grpc_error* (*getsockname)(grpc_custom_socket* socket,
const grpc_sockaddr* addr, int* len);
grpc_error* (*setsockopt)(grpc_custom_socket* socket, int level, int optname,
const void* optval, uint32_t len);
grpc_error* (*setsockopt)(grpc_custom_socket* socket);
grpc_error* (*bind)(grpc_custom_socket* socket, const grpc_sockaddr* addr,
size_t len, int flags);
grpc_error* (*listen)(grpc_custom_socket* socket);

@ -239,8 +239,7 @@ cdef grpc_error* socket_getsockname(grpc_custom_socket* socket,
length[0] = c_addr.len
return grpc_error_none()
cdef grpc_error* socket_setsockopt(grpc_custom_socket* socket, int level, int optname,
const void *optval, uint32_t optlen) with gil:
cdef grpc_error* socket_setsockopt(grpc_custom_socket* socket) with gil:
# No-op; we provide a default set of options
return grpc_error_none()

Loading…
Cancel
Save