1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

Continue output plugin implementation

This commit is contained in:
thatmattlove
2021-09-12 18:27:33 -07:00
parent 560663601d
commit 74fcb5dba4
16 changed files with 124 additions and 129 deletions

View File

@@ -55,7 +55,10 @@ async def execute(query: "Query") -> Union[str, Sequence[Dict]]:
mapped_driver = map_driver(query.device.driver)
driver: "Connection" = mapped_driver(query.device, query)
signal.signal(signal.SIGALRM, handle_timeout(error=TimeoutError(), device=query.device))
signal.signal(
signal.SIGALRM,
handle_timeout(error=TimeoutError("Connection timed out"), device=query.device),
)
signal.alarm(params.request_timeout - 1)
if query.device.proxy: