Cleaner shutdown process (#992)

* Cleaner shutdown process

* Finish

* Fix Yamux panic

* Remove irrelevant tests

* Update core/src/nodes/handled_node_tasks.rs

Co-Authored-By: tomaka <pierre.krieger1708@gmail.com>

* Fix yamux error handling

* Update yamux
This commit is contained in:
Pierre Krieger
2019-03-11 17:19:50 +01:00
committed by GitHub
parent cb93c822f1
commit 8059a693a3
32 changed files with 434 additions and 1555 deletions

View File

@ -95,10 +95,6 @@ where
void::unreachable(event)
}
fn inject_inbound_closed(&mut self) {
self.inner.inject_inbound_closed()
}
fn inject_dial_upgrade_error(&mut self, info: Self::OutboundOpenInfo, error: ProtocolsHandlerUpgrErr<io::Error>) {
self.inner.inject_dial_upgrade_error(info, error)
}
@ -107,10 +103,6 @@ where
self.inner.connection_keep_alive()
}
fn shutdown(&mut self) {
self.inner.shutdown();
}
fn poll(
&mut self,
) -> Poll<