Skip to content

Commit 7cc28ea

Browse files
authored
Merge pull request #72 from hug-dev/increase-timeout
Increase the default timeout to 60 seconds
2 parents a915d9a + 152be3d commit 7cc28ea

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ edition = "2018"
1313
documentation = "https://docs.rs/crate/parsec-client"
1414

1515
[dependencies]
16-
parsec-interface = { git = "https://github.com/parallaxsecond/parsec-interface-rs", rev = "0a20255e5cb73d3c4499a73d147d7c4a2b45ac5f" }
16+
parsec-interface = { git = "https://github.com/parallaxsecond/parsec-interface-rs", rev = "0769c6a88345781cb2a168e2f8c5d5e88561fb88" }
1717
num = "0.3.0"
1818
log = "0.4.11"
1919
derivative = "2.1.1"

src/core/basic_client.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ impl BasicClient {
192192
/// authentication choice
193193
///
194194
/// This client will use the default configuration. That includes using a Protobuf converter
195-
/// for message bodies and a Unix Domain Socket IPC handler.
195+
/// for message bodies and a Unix Domain Socket IPC handler. The default timeout length is 60
196+
/// seconds.
196197
///
197198
/// # Errors
198199
///

src/core/ipc_handler/unix_socket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::path::PathBuf;
88
use std::time::Duration;
99

1010
const DEFAULT_SOCKET_PATH: &str = "/run/parsec/parsec.sock";
11-
const DEFAULT_TIMEOUT: Duration = Duration::from_secs(1);
11+
const DEFAULT_TIMEOUT: Duration = Duration::from_secs(60);
1212

1313
/// IPC handler for Unix domain sockets
1414
#[derive(Debug, Clone)]

0 commit comments

Comments
 (0)