From ad4f3dcedab29a690c5eedbb08ba1b393917db0b Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期三, 21 四月 2021 17:39:34 +0800 Subject: [PATCH] update go api. --- src/socket.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/socket.h b/src/socket.h index bbf3851..1ba10cb 100644 --- a/src/socket.h +++ b/src/socket.h @@ -125,6 +125,7 @@ return true; } else { st->canceled = true; + SetLastError(ETIMEDOUT, "timeout"); return false; } } catch (...) { -- Gitblit v1.8.0