From 0f1caadc03bb24a30de7c819073e232bc895d94e Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 10 Feb 2025 01:57:35 +0200 Subject: [PATCH] update comment --- src/client/connection.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/connection.rs b/src/client/connection.rs index b2cee84..2ad832e 100644 --- a/src/client/connection.rs +++ b/src/client/connection.rs @@ -129,7 +129,9 @@ pub fn new_tls_client_connection( // Prevent session resumption (certificate change ability in runtime) tls_client_connection.set_property("session-resumption-enabled", is_session_resumption); - // @TODO handle + // Return `Err` on server connection mismatch following specification lines: + // > Gemini servers MUST use the TLS close_notify implementation to close the connection + // > A client SHOULD notify the user of such a case // https://geminiprotocol.net/docs/protocol-specification.gmi#closing-connections tls_client_connection.set_require_close_notify(true);