rivet-gg / toolchain

โ›“๏ธ CLI, library, and FFI for working with Rivet projects.
https://rivet.gg
Apache License 2.0
5 stars 3 forks source link

Lower Hyper pool keepalive to mitigate IncompleteMessage error #265

Closed NathanFlurry closed 1 month ago

NathanFlurry commented 2 months ago

https://github.com/hyperium/hyper/issues/2136

linear[bot] commented 2 months ago

CLI-82 Lower Hyper pool keepalive to mitigate IncompleteMessage error

greptile-apps[bot] commented 2 months ago

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](https://app.greptile.com/chat/github/rivet-gg/cli/main) ยท [Edit Issue Bot Settings](https://app.greptile.com/apps/github)