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 3e7aa6b commit 03926deCopy full SHA for 03926de
sqlx-core/src/net/tls/tls_rustls.rs
@@ -71,7 +71,13 @@ impl<S: Socket> Socket for RustlsSocket<S> {
71
}
72
73
futures_util::ready!(self.poll_complete_io(cx))?;
74
- self.inner.socket.poll_shutdown(cx)
+
75
+ // Server can close socket as soon as it receives the connection shutdown request.
76
+ // We shouldn't expect it to stick around for the TLS session to close cleanly.
77
+ // https://security.stackexchange.com/a/82034
78
+ let _ = futures_util::ready!(self.inner.socket.poll_shutdown(cx));
79
80
+ Poll::Ready(Ok(()))
81
82
83
0 commit comments