lizhanhui commented on a change in pull request #60: feature: only one event
loop for all TcpTransport.
URL: https://github.com/apache/rocketmq-client-cpp/pull/60#discussion_r246986473
##########
File path: src/transport/TcpTransport.cpp
##########
@@ -213,15 +143,15 @@ void TcpTransport::timeoutcb(evutil_socket_t fd, short
what, void *arg) {
void TcpTransport::eventcb(struct bufferevent *bev, short what, void *ctx) {
Review comment:
We need to consider this racing scenario: when this callback is executing,
TcpTransport object has already been deleted. See
TcpRemotingClient::CreateTransport
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services