未验证 提交 fc22b293 编写于 作者: T Tomas Weinfurt 提交者: GitHub

fix processing of TLS renegotiation (#88511)

上级 228a5966
......@@ -865,17 +865,16 @@ private async ValueTask<int> ReadAsyncInternal<TIOAdapter>(Memory<byte> buffer,
throw new IOException(SR.net_ssl_io_renego);
}
await ReplyOnReAuthenticationAsync<TIOAdapter>(extraBuffer, cancellationToken).ConfigureAwait(false);
// Loop on read.
continue;
}
if (status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired)
else if (status.ErrorCode == SecurityStatusPalErrorCode.ContextExpired)
{
_receivedEOF = true;
break;
}
throw new IOException(SR.net_io_decrypt, SslStreamPal.GetException(status));
else
{
throw new IOException(SR.net_io_decrypt, SslStreamPal.GetException(status));
}
}
if (_buffer.DecryptedLength > 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册