Skip to content

Commit

Permalink
Increase backlog defaults. (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatfate authored Aug 1, 2023
1 parent 4255261 commit dceac3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion presto/secureserver.nim
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ proc new*(t: typedesc[SecureRestServerRef],
socketFlags: set[ServerFlags] = {ReuseAddr},
serverUri = Uri(),
maxConnections: int = -1,
backlogSize: int = 100,
backlogSize: int = DefaultBacklogSize,
bufferSize: int = 4096,
httpHeadersTimeout = 10.seconds,
maxHeadersSize: int = 8192,
Expand Down
2 changes: 1 addition & 1 deletion presto/server.nim
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ proc new*(t: typedesc[RestServerRef],
socketFlags: set[ServerFlags] = {ReuseAddr},
serverUri = Uri(),
maxConnections: int = -1,
backlogSize: int = 100,
backlogSize: int = DefaultBacklogSize,
bufferSize: int = 4096,
httpHeadersTimeout = 10.seconds,
maxHeadersSize: int = 8192,
Expand Down

0 comments on commit dceac3f

Please sign in to comment.