From 153375e3b152768cbffce715d049499945834c29 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 13 四月 2021 15:11:14 +0800
Subject: [PATCH] add api code, use proto msg as data.

---
 utest/speed_test.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/utest/speed_test.cpp b/utest/speed_test.cpp
index 77c018a..7f77b02 100644
--- a/utest/speed_test.cpp
+++ b/utest/speed_test.cpp
@@ -171,7 +171,7 @@
 			}
 			MsgI msg;
 			BHMsgHead head;
-			if (!cli.SyncRecv(msg, head, 1000)) {
+			if (!cli.SyncRecv(msg, head, 100)) {
 				printf("********** client recv error.\n");
 			} else {
 				DEFER1(msg.Release(shm));
@@ -192,7 +192,7 @@
 		BHMsgHead req_head;
 
 		while (!stop) {
-			if (srv.SyncRecv(req, req_head, 100)) {
+			if (srv.SyncRecv(req, req_head, 10)) {
 				DEFER1(req.Release(shm));
 
 				if (req.ParseHead(req_head) && req_head.type() == kMsgTypeRequestTopic) {

--
Gitblit v1.8.0