Skip to content

Commit

Permalink
http server: fix regression set backlog to 1024 (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 authored Mar 28, 2022
1 parent 78055fe commit 054c0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http-server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ impl<M> Builder<M> {
let address = addr.into();
socket.bind(&address)?;

socket.listen(128)?;
socket.listen(1024)?;
let listener: TcpListener = socket.into();
let local_addr = listener.local_addr().ok();
let listener = hyper::Server::from_tcp(listener)?;
Expand Down

0 comments on commit 054c0e3

Please sign in to comment.