Skip to content

Commit

Permalink
Specified clang as cargo dist build dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
manforowicz committed Dec 2, 2024
1 parent f7636d0 commit f0d67fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions dist-workspace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ publish-jobs = ["homebrew"]
pr-run-mode = "plan"
# The archive format to use for non-windows builds (defaults .tar.xz)
unix-archive = ".tar.gz"

# aws-lc-sys may require clang to build on Linux.
[dist.dependencies.apt]
clang = '*'
5 changes: 2 additions & 3 deletions gday_server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,8 @@ fn get_tcp_listener(addr: SocketAddr) -> Result<tokio::net::TcpListener, Error>

// sets the keepalive to 10 minutes
let tcp_keepalive = TcpKeepalive::new()
.with_time(Duration::from_secs(600))
.with_interval(Duration::from_secs(10))
.with_retries(6);
.with_time(Duration::from_secs(60))
.with_interval(Duration::from_secs(10));
socket
.set_tcp_keepalive(&tcp_keepalive)
.map_err(|source| Error {
Expand Down

0 comments on commit f0d67fd

Please sign in to comment.