Add close function that allows for cleaning closing tls connection#5
Add close function that allows for cleaning closing tls connection#5
Conversation
24e3a41 to
da844ea
Compare
Signed-off-by: James Sturtevant <jstur@microsoft.com>
da844ea to
c50600d
Compare
|
@badeend Does this look ok or should we consider a different name? |
|
I realize this signature is probably my own creation 🙃, but after looking at it with a fresh set of eyes, the return type & semantics seem a bit convoluted to me. How about stripping the return value entirely? I.e.: Like before, this then only initiates a graceful shutdown and the completion still has to be awaited through the associated As added bonus, this more closely matches the behavior of
We could, yes. The reason for the current name is because I unimaginatively copied rustls' terminology, which in turn took it from the TLS spec. Do you have any suggestions? Edit: How about |
This looks like a good change to me. Matching the other api's behavior is a great benefit.
For another datapoint, I took a look at the native-ssl and they use the term That said, I think |
Signed-off-by: James Sturtevant <jstur@microsoft.com>
|
The method exists on the Thanks! 👍 |
When adding a "read to end of stream" type test. Needed a way to close the tls connection in a clean manner.