Closed anobaka closed 8 years ago
@anobaka Move this over to https://github.com/aspnet/IISIntegration/issues to get more :eyes: on it and close it here. Wait. @Tratcher is watching here, and he might say this is a Kestrel thing.
Kestrel says IIS closed the connection (though it's unclear when in the request this happened). IIS says Kestrel failed to respond in a timely fashion, which may be why it closed the connection. How long was the request running before this happened? What was the request trying to do?
@Tratcher The response time is less than 1 second, even than 100 ms, it just responses immediately. The request is just to access the homepage of website.
You can try this:
QQBrowser
in IOS 9.3.x.(Chinese version, called "QQ浏览器" in Chinese)QQBrowser
.My tests:
My attempts:
urlrewrite
to urlencode user-agent if it's invalid, but it not works. QQBrwoser
and our website, it accesses the website successfully.urlrewrite
to urlencode more http fields if it's invalid. Any idea? Thanks.
Use Microsoft Message Analyzer to trace the packets coming into the server and see what the raw header values are. https://www.microsoft.com/en-us/download/details.aspx?id=44226
Thanks, it's powerful. Here's the packets.502.tar.gz MessageNumber 28868 & 808129 are the 502 responded requests sended by some special browsers. MessageNumber 633002 is the 200 responded request sended by other browsers.
Update It maybe the x-forwarded-for header, when I add a comma into x-forwarded-for header, it returns 502, but 200 for other special characters like . ?.
Update2 I removed the x-forwarded-for(F5XFFHttpModule.dll) module in IIS I added before, it seems to work.
@anobaka glad you found it, is this good to close now?
@Tratcher , of course, thanks for your help.
environment:
exception:
reproduction: what I've done and what happend:here's fail request log in iis:
It's very strange thing, the exception throwed only when all above conditions are met, and if one of them missed(eg. using local host settings instead of configuring the real domain forward to the ip of the lb, or using other browsers), the website can be accessed successfully.
Please help, some of our users are blocked by this. Thanks.