Skip to content

Commit

Permalink
add keep-alive for default http
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyukang committed Jan 19, 2024
1 parent 0521e15 commit 55e52e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpc/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ impl RpcServer {
enable_websocket: bool,
) -> Result<SocketAddr, AnyError> {
let stream_config = StreamServerConfig::default()
.with_keep_alive(true)
.with_channel_size(4)
.with_pipeline_size(4);

Expand Down

0 comments on commit 55e52e3

Please sign in to comment.