-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rust): avoid a long-lived probing request (#1272)
The `Probe` D-Bus function is a blocking one. It causes the call `POST /api/manager/probe` to be a long-lived request which is causing some problems (see #1254). The proposed fix is to return immediately and run the request as a separate Tokio task. After all, we will get an update on the status through a WebSocket. If needed, we could also emit an error through the WebSocket.
- Loading branch information
Showing
2 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
------------------------------------------------------------------- | ||
Wed May 29 10:40:21 UTC 2024 - Imobach Gonzalez Sosa <[email protected]> | ||
|
||
- The HTTP request to perform a probing is not blocking anymore | ||
(gh#openSUSE/agama#1272). | ||
|
||
------------------------------------------------------------------- | ||
Mon May 27 14:11:55 UTC 2024 - Imobach Gonzalez Sosa <[email protected]> | ||
|
||
|