Skip to content

Commit

Permalink
TCP server config default improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed May 13, 2024
1 parent e38e25a commit da05efc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions satrs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

# [unreleased]

## Changed

- The HAL TCP server `ServerConfig::new` method now sets the `reuse_port` and `reuse_addr`
fields to `true`.

# [v0.2.0] 2024-05-02

## Changed
Expand Down
4 changes: 2 additions & 2 deletions satrs/src/hal/std/tcp_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ impl ServerConfig {
inner_loop_delay,
tm_buffer_size,
tc_buffer_size,
reuse_addr: false,
reuse_port: false,
reuse_addr: true,
reuse_port: true,
}
}
}
Expand Down

0 comments on commit da05efc

Please sign in to comment.