From 5e5732a2d4f0413bbd74bca5ddc44615b0656909 Mon Sep 17 00:00:00 2001 From: opencn Date: Tue, 12 May 2026 13:12:31 +0800 Subject: [PATCH] Add startReconnect call on socket creation failure --- evpp/TcpClient.h | 1 + 1 file changed, 1 insertion(+) diff --git a/evpp/TcpClient.h b/evpp/TcpClient.h index aa3886526..03301a5ee 100644 --- a/evpp/TcpClient.h +++ b/evpp/TcpClient.h @@ -114,6 +114,7 @@ class TcpClientEventLoopTmpl { } if (connfd < 0) { hloge("createsocket %s:%d return %d!\n", remote_host.c_str(), remote_port, connfd); + startReconnect(); return connfd; } }