Skip to content

Commit

Permalink
Reduced number of retries to 2 for ws/tcp dialer
Browse files Browse the repository at this point in the history
  • Loading branch information
Musixal committed Oct 13, 2024
1 parent 6edfad7 commit 24f2967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/client/transport/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TcpDialer(address string, timeout time.Duration, keepAlive time.Duration, n
var tcpConn *net.TCPConn
var err error

retries := 3 // Number of retries
retries := 2 // Number of retries
backoff := 1 * time.Second // Initial backoff duration

for i := 0; i < retries; i++ {
Expand Down Expand Up @@ -142,7 +142,7 @@ func WebSocketDialer(addr string, path string, timeout time.Duration, keepalive
var tunnelWSConn *websocket.Conn
var err error

retries := 3 // Number of retries
retries := 2 // Number of retries
backoff := 1 * time.Second // Initial backoff duration

for i := 0; i < retries; i++ {
Expand Down

0 comments on commit 24f2967

Please sign in to comment.