You need to sign in or sign up before continuing.
Unverified Commit 54b71412 authored by Chao Ma's avatar Chao Ma Committed by GitHub
Browse files

Increase seconds for showing the tcp re-connect message (#1834)

parent dadceb30
...@@ -68,7 +68,8 @@ bool SocketSender::Connect() { ...@@ -68,7 +68,8 @@ bool SocketSender::Connect() {
if (client_socket->Connect(ip, port)) { if (client_socket->Connect(ip, port)) {
bo = true; bo = true;
} else { } else {
if (try_count % 10 == 0 && try_count != 0) { if (try_count % 200 == 0 && try_count != 0) {
// every 1000 seconds show this message
LOG(INFO) << "Try to connect to: " << ip << ":" << port; LOG(INFO) << "Try to connect to: " << ip << ":" << port;
} }
try_count++; try_count++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment