mirror of https://github.com/fafhrd91/actix-web
docs: Fix default value for HttpServer backlog (#3987)
HttpServer::new() initialize backlog to 1024 instead of 2048.
The default value has been changed from 2048 to 1024 in
eae48f9612.
Co-authored-by: Romain Roffé <r2@kyber.media>
This commit is contained in:
parent
b9d3adfa4d
commit
25c5b5c4cf
|
|
@ -176,7 +176,7 @@ where
|
||||||
/// results in the client getting an error when attempting to connect. It should only affect
|
/// results in the client getting an error when attempting to connect. It should only affect
|
||||||
/// servers under significant load.
|
/// servers under significant load.
|
||||||
///
|
///
|
||||||
/// Generally set in the 64–2048 range. Default value is 2048.
|
/// Generally set in the 64–2048 range. Default value is 1024.
|
||||||
///
|
///
|
||||||
/// This method will have no effect if called after a `bind()`.
|
/// This method will have no effect if called after a `bind()`.
|
||||||
pub fn backlog(mut self, backlog: u32) -> Self {
|
pub fn backlog(mut self, backlog: u32) -> Self {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue