You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config.go
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -251,6 +251,11 @@ const (
251
251
252
252
defaultPrunedNodeMaxPeers=4
253
253
defaultNeutrinoMaxPeers=8
254
+
255
+
// defaultNoDisconnectOnPongFailure is the default value for whether we
256
+
// should *not* disconnect from a peer if we don't receive a pong
257
+
// response in time after we send a ping.
258
+
defaultNoDisconnectOnPongFailure=false
254
259
)
255
260
256
261
var (
@@ -527,6 +532,10 @@ type Config struct {
527
532
// NumRestrictedSlots is the number of restricted slots we'll allocate
528
533
// in the server.
529
534
NumRestrictedSlotsuint64`long:"num-restricted-slots" description:"The number of restricted slots we'll allocate in the server."`
535
+
536
+
// NoDisconnectOnPongFailure controls if we'll disconnect if a peer
537
+
// doesn't respond to a pong in time.
538
+
NoDisconnectOnPongFailurebool`long:"no-disconnect-on-pong-failure" description:"If true, a peer will *not* be disconnected if a pong is not received in time or is mismatched. Defaults to false, meaning peers *will* be disconnected on pong failure."`
530
539
}
531
540
532
541
// GRPCConfig holds the configuration options for the gRPC server.
0 commit comments