Skip to content

Commit 66b33d7

Browse files
committed
Get AcceptedConnectionsLimit from the configuration
1 parent d91516b commit 66b33d7

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

Diff for: cardano-node/ChangeLog.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog for cardano-node
22

3+
## vNext
4+
5+
### node changes
6+
7+
- So far the `AcceptedConnectionLimit`s from the configuration file where
8+
ignored, the node always used the hard coded values. This is fixed in #4902.
9+
10+
### consensus changes
11+
12+
### network changes
13+
314
## 1.35.5 -- November 2022
415

516
### node changes

Diff for: cardano-node/src/Cardano/Node/Run.hs

+1-6
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,7 @@ handleSimpleNode runP p2pMode tracers nc onKernel = do
375375
Just (ActualSocket localSocket) -> Just (Left localSocket)
376376
Just (SocketInfo localAddr) -> Just (Right localAddr)
377377
Nothing -> Nothing
378-
, Diffusion.daAcceptedConnectionsLimit =
379-
AcceptedConnectionsLimit
380-
{ acceptedConnectionsHardLimit = 512
381-
, acceptedConnectionsSoftLimit = 384
382-
, acceptedConnectionsDelay = 5
383-
}
378+
, Diffusion.daAcceptedConnectionsLimit = ncAcceptedConnectionsLimit nc
384379
, Diffusion.daMode = ncDiffusionMode nc
385380
}
386381

0 commit comments

Comments
 (0)