Skip to content
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

Lower Hyper pool keepalive to mitigate IncompleteMessage error #265

Closed
NathanFlurry opened this issue Jul 10, 2024 — with Linear · 2 comments
Closed

Lower Hyper pool keepalive to mitigate IncompleteMessage error #265

NathanFlurry opened this issue Jul 10, 2024 — with Linear · 2 comments
Assignees
Labels
bug Something isn't working

Comments

Copy link
Member

hyperium/hyper#2136

@NathanFlurry NathanFlurry added the bug Something isn't working label Jul 10, 2024 — with Linear
@NathanFlurry NathanFlurry self-assigned this Jul 10, 2024
Copy link

linear bot commented Jul 10, 2024

Copy link

greptile-apps bot commented Jul 10, 2024

To mitigate the IncompleteMessage error, adjust the Hyper client pool keepalive settings in cli/src/util/api.rs. Locate the Hyper client configuration and set the keepalive timeout to a lower value. Example:

use hyper::client::HttpConnector;
use hyper::Client;
use hyper::client::connect::Connect;

let mut http = HttpConnector::new();
http.set_keepalive(Some(Duration::from_secs(5)));
let client = Client::builder().build::<_, hyper::Body>(http);

References

/cli/src/util/api.rs

About Greptile

This response provides a starting point for your research, not a precise solution.

Help us improve! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

Ask Greptile · Edit Issue Bot Settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant