From 64bff0caaf665c65125cdab2b144f3594d520002 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 20 四月 2021 18:39:52 +0800
Subject: [PATCH] go api works. refactor.

---
 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