Merge pull request #1520 from ctiller/cancel-after-invoke

If we have closed the transport, dont try reading
pull/1525/merge
Yang Gao 10 years ago
commit bc2c63cda6
  1. 2
      src/core/transport/chttp2_transport.c

@ -1927,8 +1927,10 @@ static void recv_data(void *tp, gpr_slice *slices, size_t nslices,
break; break;
case GRPC_ENDPOINT_CB_OK: case GRPC_ENDPOINT_CB_OK:
lock(t); lock(t);
if (t->cb) {
for (i = 0; i < nslices && process_read(t, slices[i]); i++) for (i = 0; i < nslices && process_read(t, slices[i]); i++)
; ;
}
unlock(t); unlock(t);
keep_reading = 1; keep_reading = 1;
break; break;

Loading…
Cancel
Save