Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpool: don't reuse connection if we sent close #225

Merged
merged 1 commit into from
May 21, 2020

Conversation

weissi
Copy link
Contributor

@weissi weissi commented May 21, 2020

Motivation:

Previously, we'd only use the server's connection header to determine if
we should close the connection or not. That's wrong because if we set
connection: close ourselves, we must not reuse again.

Modification:

Set TaskHandler.closing = false if we send a close header.

Result:

More HTTP correctness.

Motivation:

Previously, we'd only use the server's connection header to determine if
we should close the connection or not. That's wrong because if we set
`connection: close` ourselves, we must not reuse again.

Modification:

Set `TaskHandler.closing = false` if we send a close header.

Result:

More HTTP correctness.
@weissi weissi requested a review from artemredkin May 21, 2020 11:33
@weissi
Copy link
Contributor Author

weissi commented May 21, 2020

hit #226 , retrying

@weissi
Copy link
Contributor Author

weissi commented May 21, 2020

@swift-server-bot test this please

@weissi
Copy link
Contributor Author

weissi commented May 21, 2020

swiftpm bug. Not filing because it's the 5.0 one, if we see this on 5.2 we should file

[437/448] Compiling Swift Module 'NIO' (66 sources)
<unknown>:0: error: missing submodule 'CNIOLinux'
/code/.build/checkouts/swift-nio/Sources/NIO/GetaddrinfoResolver.swift:24:8: error: no such module 'CNIOLinux'
import CNIOLinux
       ^

@weissi
Copy link
Contributor Author

weissi commented May 21, 2020

@swift-server-bot test this please

@weissi weissi merged commit 070c1e5 into swift-server:master May 21, 2020
@weissi weissi deleted the jw-fix-outgoing-close branch May 21, 2020 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants