diff options
| author | Joshua Watt <JPEWhacker@gmail.com> | 2024-06-03 10:44:03 -0600 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-10-30 08:30:00 -0700 |
| commit | a34743f17863e9403b170dbfcd5dbdb142210819 (patch) | |
| tree | 40c82105ef3b85fab3c1ef9bd1438faee185033a /bitbake/lib/bb/asyncrpc | |
| parent | 200d12b6a58ad961d60a7774ca0f7a9d29498724 (diff) | |
| download | poky-a34743f17863e9403b170dbfcd5dbdb142210819.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: 270c0c8bdc802c04fd3021c082d58cf8e8d68d82)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 23681775e5941e54ebead469addf708fca1e6beb)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'bitbake/lib/bb/asyncrpc')
| -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 a350b4fb12..6fa2839f48 100644 --- a/bitbake/lib/bb/asyncrpc/client.py +++ b/bitbake/lib/bb/asyncrpc/client.py | |||
| @@ -87,7 +87,11 @@ class AsyncClient(object): | |||
| 87 | import websockets | 87 | import websockets |
| 88 | 88 | ||
| 89 | async def connect_sock(): | 89 | async def connect_sock(): |
| 90 | websocket = await websockets.connect(uri, ping_interval=None) | 90 | websocket = await websockets.connect( |
| 91 | uri, | ||
| 92 | ping_interval=None, | ||
| 93 | open_timeout=self.timeout, | ||
| 94 | ) | ||
| 91 | return WebsocketConnection(websocket, self.timeout) | 95 | return WebsocketConnection(websocket, self.timeout) |
| 92 | 96 | ||
| 93 | self._connect_sock = connect_sock | 97 | self._connect_sock = connect_sock |
