Revert "Merged release/2.1"
This reverts commitcf45fac634, reversing changes made to313772ef03.
This commit is contained in:
parent
cf45fac634
commit
924272ad1a
|
|
@ -381,8 +381,6 @@ namespace Microsoft.AspNetCore.Http.Connections
|
|||
// Establish the connection
|
||||
var connection = _manager.CreateConnection();
|
||||
|
||||
EnsureConnectionStateInternal(connection, options);
|
||||
|
||||
// Set the Connection ID on the logging scope so that logs from now on will have the
|
||||
// Connection ID metadata set.
|
||||
logScope.ConnectionId = connection.ConnectionId;
|
||||
|
|
@ -604,6 +602,8 @@ namespace Microsoft.AspNetCore.Http.Connections
|
|||
return null;
|
||||
}
|
||||
|
||||
EnsureConnectionStateInternal(connection, options);
|
||||
|
||||
return connection;
|
||||
}
|
||||
|
||||
|
|
@ -630,7 +630,6 @@ namespace Microsoft.AspNetCore.Http.Connections
|
|||
if (StringValues.IsNullOrEmpty(connectionId))
|
||||
{
|
||||
connection = _manager.CreateConnection();
|
||||
EnsureConnectionStateInternal(connection, options);
|
||||
}
|
||||
else if (!_manager.TryGetConnection(connectionId, out connection))
|
||||
{
|
||||
|
|
@ -640,6 +639,8 @@ namespace Microsoft.AspNetCore.Http.Connections
|
|||
return null;
|
||||
}
|
||||
|
||||
EnsureConnectionStateInternal(connection, options);
|
||||
|
||||
return connection;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue