Skip to content

Commit

Permalink
Disable max empty time for authoritative matches by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
zyro committed Feb 10, 2020
1 parent 228a1ed commit c22b45e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ type MatchConfig struct {
JoinAttemptQueueSize int `yaml:"join_attempt_queue_size" json:"join_attempt_queue_size" usage:"Size of the authoritative match buffer that limits the number of in-progress join attempts. Default 128."`
DeferredQueueSize int `yaml:"deferred_queue_size" json:"deferred_queue_size" usage:"Size of the authoritative match buffer that holds deferred message broadcasts until the end of each loop execution. Default 128."`
JoinMarkerDeadlineMs int `yaml:"join_marker_deadline_ms" json:"join_marker_deadline_ms" usage:"Deadline in milliseconds that client authoritative match joins will wait for match handlers to acknowledge joins. Default 15000."`
MaxEmptySec int `yaml:"max_empty_sec" json:"max_empty_sec" usage:"Maximum number of consecutive seconds that authoritative matches are allowed to be empty before they are stopped. Default 900."`
MaxEmptySec int `yaml:"max_empty_sec" json:"max_empty_sec" usage:"Maximum number of consecutive seconds that authoritative matches are allowed to be empty before they are stopped. 0 indicates no maximum. Default 0."`
}

// NewMatchConfig creates a new MatchConfig struct.
Expand All @@ -660,7 +660,7 @@ func NewMatchConfig() *MatchConfig {
JoinAttemptQueueSize: 128,
DeferredQueueSize: 128,
JoinMarkerDeadlineMs: 15000,
MaxEmptySec: 900,
MaxEmptySec: 0,
}
}

Expand Down

0 comments on commit c22b45e

Please sign in to comment.