-
Notifications
You must be signed in to change notification settings - Fork 123
deprecate ignoreUncleanSSLShutdown: Bool
parameter
#231
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
Comments
@Lukasa does this sound right? |
Probably, with the caveat that in principle we may want users to be able to tolerate even the last case if they're sure they should. But frankly I think deprecating sounds good. |
I agree with that. My thinking was that EOF framing over TLS should be super rare (am I right here?), and even rarer without CloseNotify, so I don't think that's a thing we need to support. And if we do then we can add a new one with a more scary name :). |
I believe it should be super rare, yes. As noted, I’m happy to deprecate. |
For more context: #238 contains the full explanation why we don't need this parameter. |
### Motivation Fixes #238 and #231. ### Changes - Extracted the unclean shutdown test from `HTTPClientTests` into their own file `HTTPClientUncleanSSLConnectionShutdownTests` - Copy and pasted @weissi great explanation from #238 into the test file - Removed property `ignoreUncleanSSLShutdown` everywhere ### Result `ignoreUncleanSSLShutdown` on `HTTPClient.Configuration` is deprecated and ignored. Co-authored-by: Johannes Weiss <[email protected]>
We should probably deprecate the
ignoreUncleanSSLShutdown
parameter. AsyncHTTPClient knows when it can and when it cannot ignore an unclean SSL shutdown.Basically if an
.end
was received and we have either acontent-length
OR atransfer-encoding: chunked
header from the server, we can safely ignore. For HTTP/2 we can always ignore.If we do have neither a
content-length
, nor atransfer-encoding: chunked
header, then this should error.The text was updated successfully, but these errors were encountered: