diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2024-06-03 10:44:03 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-06-04 12:05:20 +0100 |
commit | c88bee1a5e336cc589eb7d7e5f31db43e8836611 (patch) | |
tree | f2550cf4009f692000021e39a3ffd4c9e910e970 | |
parent | 6a8a554476074a08db4c1580a47f6a8814fe507f (diff) | |
download | poky-c88bee1a5e336cc589eb7d7e5f31db43e8836611.tar.gz |
bitbake: asyncrpc: Use client timeout for websocket open timeout
The default connection timeout for websockets is 10 seconds, so use the
provided client timeout instead (which defaults to 30 seconds).
(Bitbake rev: 23681775e5941e54ebead469addf708fca1e6beb)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/asyncrpc/client.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/asyncrpc/client.py b/bitbake/lib/bb/asyncrpc/client.py index 11179b0fcb..9be49261c0 100644 --- a/bitbake/lib/bb/asyncrpc/client.py +++ b/bitbake/lib/bb/asyncrpc/client.py | |||
@@ -112,7 +112,11 @@ class AsyncClient(object): | |||
112 | ) | 112 | ) |
113 | 113 | ||
114 | async def connect_sock(): | 114 | async def connect_sock(): |
115 | websocket = await websockets.connect(uri, ping_interval=None) | 115 | websocket = await websockets.connect( |
116 | uri, | ||
117 | ping_interval=None, | ||
118 | open_timeout=self.timeout, | ||
119 | ) | ||
116 | return WebsocketConnection(websocket, self.timeout) | 120 | return WebsocketConnection(websocket, self.timeout) |
117 | 121 | ||
118 | self._connect_sock = connect_sock | 122 | self._connect_sock = connect_sock |