-
Notifications
You must be signed in to change notification settings - Fork 68
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
close and shutdown semantics #452
Comments
As I understand it, in TLS 1.3,
|
Thanks for your huge comment, just to be clear:
Yes, for TLS 1.3 this is single direction close only - similar to a
Yes, that is also what I have in mind. Now, this library implements also earlier versions of TLS, so the API should cope with these earlier versions as well. In earlier TLS versions, a close_notify has different semantics, as I mentioned in this issue. I'm not sure I understand your 4 points. The reason for this issue to exist is that there should be some API changes, and all supported TLS protocol versions need to be respected. |
Apologies for the noise. I will keep the discussion only to close_notify and shutdown semantics.
With regards to TLS 1.2 and 1.3, as I understand it, at the moment eio effectual layer is in the half-way house with regards to |
Ok. What can I say, apart from: this library supports TLS 1.0 and TLS 1.1. I've not looked into recent deployment statistics how widely TLS 1.0 and TLS 1.1 are still used. As far as I understand, the semantics of close_notify in TLS 1.2 and TLS 1.1 and TLS 1.0 are all the same.
I'm sorry to hear. From what I understand, the lwt and mirage layers (and async as well) do implement the TLS 1.2 semantics: close is always a full close, a close_notify is replied to with a close_notify. I lack understanding of |
the way to go is #488. I'll close this issue in the meantime. |
As discussed in #451:
The implementation does not track
close_notify
being sent or received, but it replies to a close_notify (and any other alert) with aclose_notify
itself. To supportshutdown Write
(and return`Eof
early if the other peer already sentclose_notify
) we need to track this in the engine state.The text was updated successfully, but these errors were encountered: