Skip to content

Commit

Permalink
Merge 3fd89fb into 8695a46
Browse files Browse the repository at this point in the history
  • Loading branch information
SAPikachu committed Aug 12, 2016
2 parents 8695a46 + 3fd89fb commit a7cd258
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/tcp/tcp_client_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,11 @@ impl Handler for ClientHandler {
}
},
Err(ref e) if io::ErrorKind::WouldBlock == e.kind() => {
// this is expected with the connection would block
// noop
debug!("WouldBlock, reregistering for next call: {:?}", self.handler.get_events());
if let Err(e) = event_loop.reregister(self.handler.get_stream(), token, self.handler.get_events(), PollOpt::all()) {
error!("could not reregister stream: {:?} cause: {}", self.handler.get_stream(), e);
// FIXME: Maybe it doesn't need reregistration on this system?
}
},
Err(e) => {
// shutdown the connection, remove it.
Expand Down

0 comments on commit a7cd258

Please sign in to comment.