Skip to content

Conversation

@fabianfett
Copy link
Member

Motivation

Currently active connections are just closed on shutdown. We expect running requests to be cancelled though.

Changes

  • Trigger the correct method on HTTPConnectionPool.Connection to cancel the request and close the connection then
  • Add a test

Result

A better behaving http client.

@fabianfettfabianfett requested review from Lukasa and glbrntt and removed request for glbrnttSeptember 13, 2021 10:00
@fabianfett
Copy link
MemberAuthor

@swift-server-bot test this please

@fabianfettfabianfett added the 🔨 semver/patch No public API change. label Sep 13, 2021
@fabianfettfabianfett merged commit 5d2bf92 into swift-server:mainSep 13, 2021
@fabianfettfabianfett deleted the ff-shutdown-active-connections branch September 13, 2021 12:57
@fabianfettfabianfett added this to the HTTP/2 support milestone Sep 13, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patchNo public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@fabianfett@Lukasa