You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When closing a Zenoh session, it is expected that the socket is available after the session.close() call returns. This should be observed independently of which Link protocol is used by the session. This is not the case sometimes when using Quic.
Testing locally has shown this to be true on TCP, UDP and TLS. However, sequentially closing and opening a router/peer Quic session leads to panic due to the socket being unavailable. This only occurs when the session in question has been used (i.e. a client or peer has established a connection on that socket), this case is therefore not covered by this test which only opens one router session and alternates open/close of client sessions that connect to it.
To reproduce
#[tokio::main]
async fn main() {
{...Initializations and config...}
println!("Opening Router Session...");
let router = zenoh::open(router_config.clone())
.res_async()
.await
.unwrap();
println!("Opening Client Session...");
let client = zenoh::open(client_config.clone())
.res_async()
.await
.unwrap();
println!("Closing Client Session...");
client.close().res_async().await.unwrap();
println!("Closing Router Session...");
router.close().res_async().await.unwrap();
println!("Reopening Router Session...");
// This will panic most of the time if the Transport is using Quic unicast Link
// It does not panic when using TLS, TCP or UDP links (tested locally)
let s2 = zenoh::open(router_config.clone())
.res_async()
.await
.unwrap();
}
System info
MacBook Air, Mac OS, Apple Silicon M2
Zenoh 0.11.0-dev
The text was updated successfully, but these errors were encountered:
Describe the bug
When closing a Zenoh session, it is expected that the socket is available after the
session.close()
call returns. This should be observed independently of which Link protocol is used by the session. This is not the case sometimes when using Quic.Testing locally has shown this to be true on TCP, UDP and TLS. However, sequentially closing and opening a router/peer Quic session leads to panic due to the socket being unavailable. This only occurs when the session in question has been used (i.e. a client or peer has established a connection on that socket), this case is therefore not covered by this test which only opens one router session and alternates open/close of client sessions that connect to it.
To reproduce
System info
MacBook Air, Mac OS, Apple Silicon M2
Zenoh 0.11.0-dev
The text was updated successfully, but these errors were encountered: