Skip to content

Commit

Permalink
Send heartbeat OPTIONS message every 30 seconds to match python-driver
Browse files Browse the repository at this point in the history
  • Loading branch information
sylwiaszunejko committed Apr 25, 2024
1 parent 3c32c6c commit 688ac8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ func (c *Conn) heartBeat(ctx context.Context) {
switch resp.(type) {
case *supportedFrame:
// Everything ok
sleepTime = 5 * time.Second
sleepTime = 30 * time.Second
failures = 0
case error:
// TODO: should we do something here?
Expand Down
2 changes: 1 addition & 1 deletion control.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (c *controlConn) heartBeat() {
switch resp.(type) {
case *supportedFrame:
// Everything ok
sleepTime = 5 * time.Second
sleepTime = 30 * time.Second
continue
case error:
goto reconn
Expand Down

0 comments on commit 688ac8e

Please sign in to comment.