Disconnect on protocol timeout (#2212)

This commit is contained in:
Arkadiy Paronyan authored and GitHub committed 2019-04-04 18:01:28 +02:00
1 parent cb3c912b1a
commit 301844dd56
2 files changed
+4 -1

No files matched your search

@@ -506,7 +506,7 @@ where
Ok(Async::Ready(())) => {
deadline.reset(Instant::now() + Duration::from_secs(60));
let event = CustomProtoHandlerOut::ProtocolError {
is_severe: false,
is_severe: true,
error: "Timeout when opening protocol".to_string().into(),
};
return_value = Some(ProtocolsHandlerEvent::Custom(event));