Skip to content

RequestRetryType.RetryOnStreamLimitReached is never used #121638

@MihaZupan

Description

@MihaZupan

We have this catch block looking for RequestRetryType.RetryOnStreamLimitReached

catch (HttpRequestException e) when (e.AllowRetry == RequestRetryType.RetryOnStreamLimitReached)
{
if (NetEventSource.Log.IsEnabled())
{
Trace($"Retrying request on another HTTP/2 connection after active streams limit is reached on existing one: {e}");
}
// Eat exception and try again.
}

but since .NET 6 (#53851), the flag isn't set anywhere, so this is all dead code.

Noticed while looking at dotnet/arcade#16305

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions