Skip to content

Commit

Permalink
fix(net): Implement blocked() for OpensslStream
Browse files Browse the repository at this point in the history
This should fix some busy looping when using OpenSSL. For example, if
the transport was blocked on a read, it wasn't surfaced to the
`http::Conn` and so the wrong interest was registered with the event
loop. Registering for the wrong interest triggered calls to
`http::Conn::ready()` which were unable to make progress.
  • Loading branch information
jwilm committed Oct 18, 2016
1 parent cd6c1b6 commit ac5d0ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,10 @@ mod openssl {
fn take_socket_error(&mut self) -> io::Result<()> {
self.stream.get_mut().take_socket_error()
}

fn blocked(&self) -> Option<super::Blocked> {
self.blocked
}
}
}

Expand Down

0 comments on commit ac5d0ab

Please sign in to comment.