Skip to content

Commit

Permalink
print error from net.Dial (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanagarajkm authored Apr 28, 2023
1 parent 28182b0 commit 76612d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func runClient(host string) {
for i := 0; i < proc; i++ {
conn, err := net.Dial("tcp", host)
if err != nil {
log.Println("Dial-Error", conn, err)
time.Sleep(time.Second)
continue
}
Expand Down

0 comments on commit 76612d3

Please sign in to comment.