From d90b3c3779d9c6bd2884540621d107e4ac10e930 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期四, 04 八月 2022 09:10:58 +0800
Subject: [PATCH] tcp remote reduce timeout in readrequest

---
 src/common.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/common.h b/src/common.h
index 253d124..819c09a 100644
--- a/src/common.h
+++ b/src/common.h
@@ -179,6 +179,7 @@
 };
 
 enum { INIT, RECV, WAIT, SEND };
+enum { REPLY_IPC, REPLY_TCP };
 struct work {
     int state{-1};
     nng_aio *aio{};
@@ -186,6 +187,7 @@
     nng_ctx  ctx{};
     void(*cb_recv)(work*){};
     void* user_data{};
+    int mode{-1};
 };
 
 static const std::string rr_unblocking_msg_{"~!@#$%^&*()-=<<UNBLOCKING>>=-()*&^%$#@!~"};

--
Gitblit v1.8.0