return;
}
+ if (NetEventSource.Log.IsEnabled())
+ {
+ Trace($"Available HTTP/1.1 connections: {_availableHttp11Connections.Count}, Requests in the queue: {_http11RequestQueue.Count}, " +
+ $"Pending HTTP/1.1 connections: {_pendingHttp11ConnectionCount}, Total associated HTTP/1.1 connections: {_associatedHttp11ConnectionCount}, " +
+ $"Max HTTP/1.1 connection limit: {_maxHttp11Connections}.");
+ }
+
// Determine if we can and should add a new connection to the pool.
if (_availableHttp11Connections.Count == 0 && // No available connections
_http11RequestQueue.Count > _pendingHttp11ConnectionCount && // More requests queued than pending connections
{
quicConnection = await ConnectHelper.ConnectQuicAsync(request, Settings._quicImplementationProvider ?? QuicImplementationProviders.Default, new DnsEndPoint(authority.IdnHost, authority.Port), _sslOptionsHttp3!, cancellationToken).ConfigureAwait(false);
}
- catch
+ catch (Exception e)
{
+ if (NetEventSource.Log.IsEnabled()) Trace($"QUIC connection failed: {e}");
+
// Disables HTTP/3 until server announces it can handle it via Alt-Svc.
BlocklistAuthority(authority);
throw;
private void HandleHttp11ConnectionFailure(Exception e)
{
- if (NetEventSource.Log.IsEnabled()) Trace("HTTP/1.1 connection failed");
+ if (NetEventSource.Log.IsEnabled()) Trace($"HTTP/1.1 connection failed: {e}");
lock (SyncObj)
{
private void HandleHttp2ConnectionFailure(Exception e)
{
- if (NetEventSource.Log.IsEnabled()) Trace("HTTP2 connection failed");
+ if (NetEventSource.Log.IsEnabled()) Trace($"HTTP2 connection failed: {e}");
lock (SyncObj)
{