Skip to content
This repository was archived by the owner on Oct 24, 2019. It is now read-only.

Commit 75000df

Browse files
author
root
committed
bug fix for CConnSet::send time update
1 parent 5ce19e2 commit 75000df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spp_rpc/src/comm/tbase/tsockcommu/tconnset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ int CConnSet::send(unsigned flow, const char* data, size_t data_len)
230230
struct timeval now;
231231
ConnCache* cc = ccs_[flow % maxconn_];
232232

233+
gettimeofday(&now, NULL);
233234
if (cc->_flow != flow || flow == 0) {
234235
MONITOR(MONITOR_SEND_FLOWID_ERR); // rsp msg flowid invalid
235-
gettimeofday(&now, NULL);
236236
unsigned flowCostTime =
237237
(now.tv_sec - cc->_info.recvtime_) * 1000
238238
+ (now.tv_usec - cc->_info.tv_usec) / 1000;

0 commit comments

Comments
 (0)