diff options
author | 2015-07-05 12:44:37 -0700 | |
---|---|---|
committer | 2015-07-05 12:44:37 -0700 | |
commit | 9188d7a2df8217aa9414113a215668118a0dd700 (patch) | |
tree | c92e633f2e0bccaf6ca615a076b91d9a120189c2 /src/core/transport/transport.h | |
parent | 092d8d1b7f4acd55a7bb89b10deb8e4c33ad6930 (diff) |
Change transport contract to automatically disconnect after sending a goaway
iff there are no calls left - lets us remove this tracking from the server where it required a server-wide lock, and instead do the processing under the transport lock which parallelizes much more cleanly.
Diffstat (limited to 'src/core/transport/transport.h')
-rw-r--r-- | src/core/transport/transport.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/transport/transport.h b/src/core/transport/transport.h index 579bcc943f..1429737721 100644 --- a/src/core/transport/transport.h +++ b/src/core/transport/transport.h @@ -91,7 +91,9 @@ typedef struct grpc_transport_op { grpc_connectivity_state *connectivity_state; /** should the transport be disconnected */ int disconnect; - /** should we send a goaway? */ + /** should we send a goaway? + after a goaway is sent, once there are no more active calls on + the transport, the transport should disconnect */ int send_goaway; /** what should the goaway contain? */ grpc_status_code goaway_status; |