Skip to content

Commit

Permalink
increased dial timeout to 500ms(#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Omri Eival committed May 4, 2020
1 parent 4945b7f commit 521ba7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ loop:
if m.ShouldClose != true {
log.Infof("%s; new session; connecting to port %d", m.RequestId, port)
// new session
conn, err := net.DialTimeout(strings.ToLower(scheme), fmt.Sprintf("localhost:%d", port), time.Millisecond*50)
conn, err := net.DialTimeout(strings.ToLower(scheme), fmt.Sprintf("localhost:%d", port), time.Millisecond*500)
if err != nil {
log.Errorf("failed connecting to localhost on port %d scheme %s: %v", port, scheme, err)
return
Expand Down

0 comments on commit 521ba7f

Please sign in to comment.