遇到一个问题。 在网络正常的情况下会出现 connection timed out 情况描述: zltool作为http客户端。 前一个请求服务器正常(域名解析过了),后一个同样的情况会出现偶尔出现connection timed out, connect超时。 <img width="1876" height="798" alt="Image" src="https://github.com/user-attachments/assets/634f4881-126f-41c2-9740-c17a1429a9b2" /> 看代码,这个地方是异步connect非阻塞的,连接的成功与否是epoll去判断。 理论上是不是出现如下超时才对。 <img width="1690" height="474" alt="Image" src="https://github.com/user-attachments/assets/465ea396-9628-43c4-9de9-d99b630b3a53" />