Skip to content

Conversation

@fabianfett
Copy link
Member

Motivation

Currently we don't close connections if we receive an HTTP/1.0 response but no keep-alive header.

Changes

  • Use HTTPResponseHead.isKeepAlive instead of relying on our own test
  • Add tests

Result

Happy HTTP/1.0 communication.

@fabianfettfabianfett added the 🔨 semver/patch No public API change. label Sep 20, 2021
@fabianfettfabianfett added this to the HTTP/2 support milestone Sep 20, 2021
Copy link
Collaborator

@LukasaLukasa left a comment

Choose a reason for hiding this comment

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

Nice, LGTM.

@fabianfettfabianfett merged commit b25943a into swift-server:mainSep 20, 2021
@fabianfettfabianfett deleted the ff-http-1.0 branch September 20, 2021 16:16
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