-
Notifications
You must be signed in to change notification settings - Fork 122
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
Unexpected 502 response from Microsoft-IIS/10.0 #789
Comments
So I haven't tried to run the reproducer but this is sounding a lot like an IIS bug. AHC will send a zero-length DATA frame with END_STREAM in order to terminate its response, and this can flush out bugs in some HTTP/2 implementations. A similar example is #602, or #573. If you quickly modify a fork and try unconditionally setting Content-Length: 0 in the headers for your GET, does that fix the issue? |
Seems like you are right. This "patch" does indeed fix the issue. I guess there is currently no API to cleanly manipulate a request in the channel pipeline.
|
There is not. As discussed in #602, I'm wondering about whether we should enable a "quirks" mode that lets you ask us to do certain things we shouldn't have to do but that might make things work better, and this would be one of them. I'd accept a patch offering such config. |
We are observing an unexpected 502 responses when using async http client. Using curl on the same URL results in a successful request.
Example:
But running the same request through AsyncHTTPClient gives as
502 - Bad Gateway
response.The request will succeed (ie with a 404 code) when forcing
http1Only
on the client. Note though, that curl is able to successfully use http2.Reproducer code
The text was updated successfully, but these errors were encountered: