-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cli] Increase REST endpoint timeout to 30s #4628
Conversation
We saw bunch of timeouts with 10s timeout during loadtests, and then the experience is confusing - transcation actually goes through, but that is not clear
I think this is long enough that many users will think something went wrong / the request hung. Could we instead decrease the expiration time of the requests the CLI sends and then decrease this timeout accordingly? Alternatively it would be okay to do this if the CLI made it clear that it was still waiting for the request, e.g. with some logging to stderr. |
Okay we spoke offline, I was misunderstanding how time is tracked on chain (blockchain time vs absolute time, which can differ under high load). This makes sense then. |
|
||
/// Connection timeout in seconds, used for the REST endpoint of the fullnode | ||
#[clap(long, default_value = "30")] | ||
pub connection_timeout_s: u64, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you clarify where is this set to 10s default today?
@@ -823,7 +831,10 @@ impl RestOptions { | |||
} | |||
|
|||
pub fn client(&self, profile: &str) -> CliTypedResult<Client> { | |||
Ok(Client::new(self.url(profile)?)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here, implementation is:
pub fn new(base_url: Url) -> Self {
Self::new_with_timeout(base_url, Duration::from_secs(10))
}
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
We saw bunch of timeouts with 10s timeout during loadtests, and then the experience is confusing - transaction actually goes through, but that is not clear.
We used 30s timeout for txn emitter, and that worked well.
together with #4456, CLI experience should be better now
Description
Test Plan
This change is