mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: log successful TCP/TLS handshake
This helps operators and developers to easily verify if the TLS handshake was successful. On-behalf-of: SAP philipp.schuster@sap.com Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
committed by
Bo Chen
parent
90429c56c8
commit
9dc970630b
@@ -70,6 +70,7 @@ impl ReceiveListener {
|
||||
.map(SocketStream::Tls)
|
||||
.context("Failed to accept TLS migration connection")
|
||||
.map_err(MigratableError::MigrateReceive)
|
||||
.inspect(|_| info!("TLS handshake (server-side/receiver) successful"))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -942,6 +943,7 @@ pub(crate) fn send_migration_socket(
|
||||
.map(SocketStream::Tls)
|
||||
.context("Error creating TLS migration stream")
|
||||
.map_err(MigratableError::MigrateSend)
|
||||
.inspect(|_| info!("TLS handshake (client-side/sender) successful"))
|
||||
} else {
|
||||
Ok(SocketStream::Tcp(socket))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user