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 5e3fc01 commit 2178f18Copy full SHA for 2178f18
bindings/rust/s2n-tls-tokio/src/lib.rs
@@ -112,10 +112,11 @@ where
112
let result = match self.error.take() {
113
Some(err) => Err(err),
114
None => {
115
- ready!(self.tls.with_io(ctx, |context| {
+ let handshake_poll = self.tls.with_io(ctx, |context| {
116
let conn = context.get_mut().as_mut();
117
conn.poll_negotiate().map(|r| r.map(|_| ()))
118
- }))
+ });
119
+ ready!(handshake_poll)
120
}
121
};
122
// If the result isn't a fatal error, return it immediately.
0 commit comments