Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@stephentoub
Copy link
Member

Fixes two cases:

  1. When a pooling timeout (lifetime or idle) is set to 0, we fail to enforce the MaxConnectionsPerServer limit.
  2. When MaxConnectionsPerServer is set and the limit is reached, when a request completes and we transfer the connection from the completing request to a waiting request, we fail to check / enforce the connection lifetime limit.

Fixes https://github.com/dotnet/corefx/issues/29397
Fixes https://github.com/dotnet/corefx/issues/29410

cc: @geoffkizer, @davidsh

Fixes two cases:
1. When a pooling timeout (lifetime or idle) is set to 0, we fail to enforce the MaxConnectionsPerServer limit.
2. When MaxConnectionsPerServer is set and the limit is reached, when a request completes and we transfer the connection from the completing request to a waiting request, we fail to check / enforce the connection lifetime limit.
@davidsh davidsh added this to the 2.2.0 milestone May 21, 2018
connection.Trace(
receivedUnexpectedData ? "Disposing connection returned to pool. Read-ahead unexpectedly completed." :
_disposed ? "Disposing connection returned to pool. Pool was disposed." :
"Disposing connection returned to pool. Zero idle timeout.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Remove double spaces after period in these last two logging strings.

@stephentoub
Copy link
Member Author

@dotnet-bot test Outerloop Windows x64 Debug Build please
@dotnet-bot test Outerloop Linux x64 Debug Build please

@stephentoub stephentoub merged commit 50e3011 into dotnet:master May 22, 2018
@stephentoub stephentoub deleted the socketshandlertimeouts branch May 22, 2018 15:32
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…ons (dotnet/corefx#29822)

* Fix SocketsHttpHandler handling of pooling timeouts with max connections

Fixes two cases:
1. When a pooling timeout (lifetime or idle) is set to 0, we fail to enforce the MaxConnectionsPerServer limit.
2. When MaxConnectionsPerServer is set and the limit is reached, when a request completes and we transfer the connection from the completing request to a waiting request, we fail to check / enforce the connection lifetime limit.

* Address PR feedback


Commit migrated from dotnet/corefx@50e3011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants