Commit 9b80ebf6 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Close CLI stream if 'Connection reset' receive.

parent 2c84f087
......@@ -192,6 +192,8 @@ class CLI(BaseCLI):
raise self.timeout_exception_cls()
if not r:
self.logger.debug("Connection reset")
# For socket close on device we close it on system
await self.on_failure(r, None, error_cls=CLIConnectionReset)
if r == self.SYNTAX_ERROR_CODE:
metrics["cli_syntax_errors", ("proto",] += 1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment