aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/server_epoll.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 34a11c03..ed916b84 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -416,6 +416,8 @@ function interface:onreadable()
elseif err == "wantwrite" then
self:set(nil, true);
err = "timeout";
+ elseif err == "timeout" and not self._connected then
+ err = "connection timeout";
end
if partial and partial ~= "" then
self:onconnect();