mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 06:21:15 +02:00
Catch exceptions in various locations to fix small issues reported by Sentry.
This commit is contained in:
1 parent
341e2e2e3a
commit
4021a13651
8 files changed
+63
-40
No files matched your search
@@ -197,11 +197,9 @@ class AsyncioTelnetServer:
|
||||
yield from self._write_intro(network_writer, echo=self._echo, binary=self._binary, naws=self._naws)
|
||||
yield from connection.connected()
|
||||
yield from self._process(network_reader, network_writer, connection)
|
||||
except ConnectionResetError:
|
||||
except ConnectionError:
|
||||
with (yield from self._lock):
|
||||
|
||||
network_writer.close()
|
||||
|
||||
if self._reader_process == network_reader:
|
||||
self._reader_process = None
|
||||
# Cancel current read from this reader
|
||||
@@ -217,7 +215,7 @@ class AsyncioTelnetServer:
|
||||
try:
|
||||
writer.write_eof()
|
||||
yield from writer.drain()
|
||||
except ConnectionResetError:
|
||||
except ConnectionError:
|
||||
continue
|
||||
|
||||
@asyncio.coroutine
|
||||
|
||||
Reference in new issue
Block a user