Skip to content

Don't reuse a connection on redirect if certs match but DNS does not (4.4.x) - #5861

Merged
swankjesse merged 1 commit into
okhttp_4.4.xfrom
jwilson.0308.too_aggressive_
Mar 8, 2020
Merged

Don't reuse a connection on redirect if certs match but DNS does not (4.4.x)#5861
swankjesse merged 1 commit into
okhttp_4.4.xfrom
jwilson.0308.too_aggressive_

Conversation

@swankjesse

Copy link
Copy Markdown
Collaborator

We attempt to minimize connection and reconnection work, but in this case we
were overly aggressive about retaining the same connection. In some deployments
services will share certificates but not DNS addresses; when redirecting
between such services we were incorrectly attempting to reuse the connection.

This would have resulted in 404s and other misdirected requests.

Closes: #5859

…(4.4.x)

We attempt to minimize connection and reconnection work, but in this case we
were overly aggressive about retaining the same connection. In some deployments
services will share certificates but not DNS addresses; when redirecting
between such services we were incorrectly attempting to reuse the connection.

This would have resulted in 404s and other misdirected requests.

Closes: #5859
@swankjesse
swankjesse merged commit 04c7303 into okhttp_4.4.x Mar 8, 2020
@swankjesse
swankjesse deleted the jwilson.0308.too_aggressive_ branch May 17, 2020 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants