Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repository = "https://github.com/succinctlabs/sp1"
keywords = ["sp1", "succinct", "zero-knowledge", "zkvm"]
categories = ["cryptography"]
include = ["SP1_CIRCUIT_VERSION"]
rust-version = "1.91"
rust-version = "1.88"

[workspace]
members = [
Expand Down
2 changes: 1 addition & 1 deletion crates/sdk/src/network/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl NetworkClient {
) -> Self {
let client = reqwest::Client::builder()
.pool_max_idle_per_host(0)
.pool_idle_timeout(Duration::from_mins(4))
.pool_idle_timeout(Duration::from_secs(240))
.build()
.unwrap();
Self { signer, http: client.into(), rpc_url: rpc_url.into(), network_mode }
Expand Down
4 changes: 2 additions & 2 deletions crates/sdk/src/network/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ use tonic::transport::{ClientTlsConfig, Endpoint, Error};
/// Sets reasonable settings to handle timeouts and keep-alive.
pub fn configure_endpoint(addr: &str) -> Result<Endpoint, Error> {
let mut endpoint = Endpoint::new(addr.to_string())?
.timeout(Duration::from_mins(1))
.timeout(Duration::from_secs(60))
.connect_timeout(Duration::from_secs(15))
.keep_alive_while_idle(true)
.http2_keep_alive_interval(Duration::from_secs(15))
.keep_alive_timeout(Duration::from_secs(15))
.tcp_keepalive(Some(Duration::from_mins(1)))
.tcp_keepalive(Some(Duration::from_secs(60)))
.tcp_nodelay(true);

// Configure TLS if using HTTPS.
Expand Down
4 changes: 2 additions & 2 deletions crates/sdk/src/network/retry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::time::Duration;
use tonic::Code;

/// Default timeout for retry operations.
pub const DEFAULT_RETRY_TIMEOUT: Duration = Duration::from_mins(2);
pub const DEFAULT_RETRY_TIMEOUT: Duration = Duration::from_secs(120);

/// Trait for implementing retryable RPC operations.
#[async_trait::async_trait]
Expand Down Expand Up @@ -41,7 +41,7 @@ where
{
let backoff = ExponentialBackoff {
initial_interval: Duration::from_secs(1),
max_interval: Duration::from_mins(2),
max_interval: Duration::from_secs(120),
max_elapsed_time: timeout,
..Default::default()
};
Expand Down
Loading