Skip to content

Commit

Permalink
Merge pull request #337 from nats-io/update_default_ping_setting
Browse files Browse the repository at this point in the history
[CHANGED] Default Ping settings
  • Loading branch information
kozlovic committed Jan 8, 2021
2 parents 8f2c2a3 + 5f54278 commit 22aa6ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: go
go:
- 1.15.x
- 1.14.x
go_import_path: github.com/nats-io/stan.go
install:
Expand All @@ -13,4 +14,4 @@ before_script:
script:
- go test -v -race . -modfile go_tests.mod
after_success:
- if [[ "$TRAVIS_GO_VERSION" =~ 1.14 ]]; then ./scripts/cov.sh TRAVIS; fi
- if [[ "$TRAVIS_GO_VERSION" =~ 1.15 ]]; then ./scripts/cov.sh TRAVIS; fi
2 changes: 1 addition & 1 deletion stan.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const (
// DefaultPingInterval is the default interval (in seconds) at which a connection sends a PING to the server
DefaultPingInterval = 5
// DefaultPingMaxOut is the number of PINGs without a response before the connection is considered lost.
DefaultPingMaxOut = 3
DefaultPingMaxOut = 88
)

// Conn represents a connection to the NATS Streaming subsystem. It can Publish and
Expand Down

0 comments on commit 22aa6ac

Please sign in to comment.