diff options
author | 2016-07-11 16:51:39 -0700 | |
---|---|---|
committer | 2016-07-11 16:51:39 -0700 | |
commit | 9275d4067cfd9233edf2ae9a0fe1255c8c730f19 (patch) | |
tree | e3f48730a1d605df41eecd1bc57db4dc3177aae4 /src/core/lib/iomgr/tcp_server.h | |
parent | 7a1ac58ed0716666b77bda4f9d44d0b224509834 (diff) |
Shutdown the listeners early when destroying the tcp_server
Diffstat (limited to 'src/core/lib/iomgr/tcp_server.h')
-rw-r--r-- | src/core/lib/iomgr/tcp_server.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/tcp_server.h b/src/core/lib/iomgr/tcp_server.h index 875a6ca14a..5a25d39a0c 100644 --- a/src/core/lib/iomgr/tcp_server.h +++ b/src/core/lib/iomgr/tcp_server.h @@ -105,4 +105,8 @@ void grpc_tcp_server_shutdown_starting_add(grpc_tcp_server *s, a call (exec_ctx!=NULL) to shutdown_complete. */ void grpc_tcp_server_unref(grpc_exec_ctx *exec_ctx, grpc_tcp_server *s); +/* Shutdown the fds of listeners. */ +void grpc_tcp_server_shutdown_listeners(grpc_exec_ctx *exec_ctx, + grpc_tcp_server *s); + #endif /* GRPC_CORE_LIB_IOMGR_TCP_SERVER_H */ |