From a7263ba3dde392130e48f252ed45171852bb7e1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A3rebe=20-=20Romain=20GERARD?= Date: Sat, 21 Oct 2023 12:11:22 +0200 Subject: [PATCH] Send close websocket frame Former-commit-id: 31192d817a395def5f1d68e9484aadfad421ec12 [formerly 3f4edf0862c2dc91b689f882896503f64f8476a5] [formerly db9bb14e485302d9561a4bedc9bd62b1920662af [formerly 97c0fb0c421c479e4924b68099297c4463cb0a43]] Former-commit-id: 3226979c73411509b99d0aab261952d0edcfab98 [formerly 6b60dce92011b3df0fa019b8492fd89116f0c005] Former-commit-id: 36df49893ba7d36ee661454faff6addf3527fd56 Former-commit-id: 577dbe725d3757a66703c499ab38499473c24079 Former-commit-id: 9d73eba987833c88d3138e1d8b9a524fa9cc8cd0 Former-commit-id: 260b313ef97e76f3b8e3a63846b67577a6be8c68 [formerly cbfc7f9ba8b9f8f6d6fa2003cafcd0d036e931d4] Former-commit-id: 5e9bbc999d083d0b87282c4c480d619235c9aae6 --- src/transport.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/transport.rs b/src/transport.rs index 3c2b9a3..a4c4cb0 100644 --- a/src/transport.rs +++ b/src/transport.rs @@ -462,6 +462,8 @@ async fn propagate_read( } } + let _ = ws_tx.write_frame(Frame::close(1000, &[])).await; + Ok(()) }