From f932fd506dfb62a2c31c11a03249ba813a6f7acc Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 17 Jun 2015 07:38:20 -0700 Subject: Handle endpoint disconnection better --- src/core/transport/chttp2/parsing.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/transport/chttp2/parsing.c') diff --git a/src/core/transport/chttp2/parsing.c b/src/core/transport/chttp2/parsing.c index 1acf0a4b91..cea10b592e 100644 --- a/src/core/transport/chttp2/parsing.c +++ b/src/core/transport/chttp2/parsing.c @@ -667,6 +667,11 @@ static int init_rst_stream_parser( &transport_parsing->simple.rst_stream, transport_parsing->incoming_frame_size, transport_parsing->incoming_frame_flags); + transport_parsing->incoming_stream = grpc_chttp2_parsing_lookup_stream(transport_parsing, + transport_parsing->incoming_stream_id); + if (!transport_parsing->incoming_stream) { + return init_skip_frame_parser(transport_parsing, 0); + } transport_parsing->parser = grpc_chttp2_rst_stream_parser_parse; transport_parsing->parser_data = &transport_parsing->simple.rst_stream; return ok; -- cgit v1.2.3