SRC-xiaojin commented on code in PR #427:
URL: 
https://github.com/apache/rocketmq-client-cpp/pull/427#discussion_r912314070


##########
src/transport/TcpTransport.cpp:
##########
@@ -277,6 +281,10 @@ void TcpTransport::readNextMessageIntCallback(BufferEvent* 
event, TcpTransport*
 
       transport->messageReceived(msg, event->getPeerAddrPort());
     }
+    /**
+     * reset read water mark to 4
+     */
+    event->setWatermark(EV_READ, 4, 0);

Review Comment:
   at line 259, the water matk is already 4
   so I think need reset read water mark to 4 after received whole data and 
user's callback



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to