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

Ignore Early Hints (4.9.x) #7479

Closed
wants to merge 2 commits into from

Conversation

yschimke
Copy link
Collaborator

(cherry picked from commit b565eec)

@yschimke
Copy link
Collaborator Author

@swankjesse CallTest can't be reused because of addInformationResponse which was added in 5

@@ -148,4 +149,15 @@ class CallServerInterceptor(private val forWebSocket: Boolean) : Interceptor {
throw e
}
}

private fun shouldIgnoreAndWaitForRealResponse(code: Int, exchange: Exchange): Boolean = when {
Copy link

Choose a reason for hiding this comment

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

That seems to do the wrong thing for all 1xx codes except 100 and 103.

@yschimke
Copy link
Collaborator Author

yschimke commented Nov 4, 2022

The intent was to get something in quick to fix an obviously surfaced bug affecting cloudflare customers.

Then a bigger fix in #2257

It's in the blocker list for 5, #7366

Is there a simple fix here we can make to expand it to all other codes including future 1xx and codes we aren't expecting?

@reschke
Copy link

reschke commented Nov 4, 2022

Just treat all 1xx the same, except for the one that is somewhat special (101).

@yschimke
Copy link
Collaborator Author

yschimke commented Nov 4, 2022

I'll close this, make a minor update for 5.x/main. Then backport.

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