Skip to content
Snippets Groups Projects
Verified Commit 8f1207f2 authored by Ole Binder's avatar Ole Binder
Browse files

Feat: improve error messages for socket timeouts

parent 0fe79479
No related branches found
No related tags found
1 merge request!51Fix broken pipe #153
......@@ -344,6 +344,9 @@ class CoreConnection:
if data.find("END\r\n") != -1 or data.find("Bye!\r\n") != -1:
data.replace("END\r\n", "")
break
except TimeoutError as timeout_error:
msg = f"Socket timeout after {timeout} seconds while reading"
self.logger.warning(SU.yellow(msg), timeout_error)
except Exception as e:
msg = "Unknown error while socket.read_all()"
self.logger.error(SU.red(msg), e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment