mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
update comments
This commit is contained in:
parent
5e9e3aecd2
commit
072e6c3e7c
1 changed files with 2 additions and 2 deletions
|
|
@ -38,14 +38,14 @@ impl Session {
|
|||
///
|
||||
/// * force rehandshake on user certificate change in runtime (ignore default session resumption by Glib TLS backend)
|
||||
pub fn update(&self, uri: &Uri, certificate: Option<&TlsCertificate>) -> Result<(), Error> {
|
||||
// Get available client connections match `uri` scope
|
||||
// Get cached `Client` connections match `uri` scope
|
||||
// https://geminiprotocol.net/docs/protocol-specification.gmi#status-60
|
||||
for (request, connection) in self.index.borrow().iter() {
|
||||
if request.starts_with(
|
||||
uri.to_string_partial(UriHideFlags::QUERY | UriHideFlags::FRAGMENT)
|
||||
.as_str(),
|
||||
) {
|
||||
// Begin re-handshake on user certificate change
|
||||
// Begin re-handshake on `certificate` change
|
||||
match connection.tls_client_connection {
|
||||
// User certificate session
|
||||
Some(ref tls_client_connection) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue