We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9638dd2 commit f6586beCopy full SHA for f6586be
src-tauri/src/ipc.rs
@@ -434,7 +434,13 @@ impl Ipc {
434
}
435
436
pub async fn send(&self, args: &Vec<String>, app: AppHandle) -> Result<(), String> {
437
- let client = app.state::<reqwest::Client>();
+ let client = reqwest::Client::builder()
438
+ .connect_timeout(Duration::from_secs(3))
439
+ .read_timeout(Duration::from_secs(10))
440
+ .timeout(Duration::from_secs(10))
441
+ .no_proxy()
442
+ .build()
443
+ .expect("Failed to initialize http client");
444
445
let req = client
446
.post(format!("http://{ADDRESS}/args"))
0 commit comments