Skip to content

Commit

Permalink
Add idle timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo committed Nov 10, 2023
1 parent d1085e8 commit 52fa9de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ library
, Ouroboros.Consensus.Node.NetworkProtocolVersion

build-depends:
, base >=4.14 && <4.19
, bytestring >=0.10 && <0.12
, base >=4.14 && <4.19
, bytestring >=0.10 && <0.12
, cborg ^>=0.2.2
, containers >=0.5 && <0.7
, containers >=0.5 && <0.7
, contra-tracer
, deepseq
, filepath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ import Ouroboros.Network.PeerSelection.PeerMetric (PeerMetrics,
newPeerMetric, reportMetric)
import Ouroboros.Network.PeerSelection.PeerSharing (PeerSharing)
import Ouroboros.Network.PeerSelection.PeerSharing.Codec
(encodeRemoteAddress, decodeRemoteAddress)
(decodeRemoteAddress, encodeRemoteAddress)
import Ouroboros.Network.Protocol.Limits (shortWait)
import Ouroboros.Network.Protocol.PeerSharing.Type (PeerSharingAmount)
import Ouroboros.Network.RethrowPolicy
Expand Down Expand Up @@ -740,6 +740,7 @@ stdChainSyncTimeout = do
{ canAwaitTimeout = shortWait
, intersectTimeout = shortWait
, mustReplyTimeout
, idleTimeout = Just 3673
}

stdVersionDataNTN :: NetworkMagic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,7 @@ runThreadNetwork systemTime ThreadNetworkArgs
{ canAwaitTimeout = waitForever
, intersectTimeout = waitForever
, mustReplyTimeout = waitForever
, idleTimeout = waitForever
})
nullMetric
-- The purpose of this test is not testing protocols, so
Expand Down

0 comments on commit 52fa9de

Please sign in to comment.