Example #1
0
 // This is called when a CancellationToken fires mid-write. In HTTP/1.x, this aborts the entire connection.
 // For HTTP/2 we abort the stream.
 void IProtoOutputAborter.Abort(ConnectionAbortedException abortReason)
 {
     _stream.ResetAndAbort(abortReason, Proto2ErrorCode.INTERNAL_ERROR);
     Dispose();
 }