From 65a230ec6ccb61c3ce6816730da2106f07f40b4a Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期五, 23 四月 2021 18:42:41 +0800 Subject: [PATCH] add api, Unregister, QueryTopicAddress. --- 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