We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6bdfac commit c055723Copy full SHA for c055723
awc/CHANGES.md
@@ -2,6 +2,7 @@
2
3
## Unreleased
4
5
+- Prevent panics on connection pool drop when Tokio runtime is shutdown early.
6
- Minimum supported Rust version (MSRV) is now 1.75.
7
8
## 3.5.1
awc/src/client/pool.rs
@@ -76,7 +76,9 @@ where
76
fn close(&self, conn: ConnectionInnerType<Io>) {
77
if let Some(timeout) = self.config.disconnect_timeout {
78
if let ConnectionInnerType::H1(io) = conn {
79
- actix_rt::spawn(CloseConnection::new(io, timeout));
+ if tokio::runtime::Handle::try_current().is_ok() {
80
+ actix_rt::spawn(CloseConnection::new(io, timeout));
81
+ }
82
}
83
84
0 commit comments