Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ func (s *Server) standbySession(primaryAddr string) error {
default:
}

conn.SetReadDeadline(time.Now().Add(45 * time.Second)) //nolint:errcheck
conn.SetReadDeadline(time.Now().Add(30 * time.Second)) //nolint:errcheck
msg, err := readMessage(conn)
if err != nil {
if err == io.EOF {
Expand Down
2 changes: 1 addition & 1 deletion replication/replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (m *Manager) PushDelta(entries []walpkg.DeltaEntry, seqNo uint64) {
// subscribers so standbys can detect primary failure within ~30s.
// It blocks until done is closed.
func (m *Manager) StartHeartbeat(done <-chan struct{}) {
ticker := time.NewTicker(15 * time.Second)
ticker := time.NewTicker(10 * time.Second)
defer ticker.Stop()
for {
select {
Expand Down
Loading