You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/01/08 05:47:08 UTC

[GitHub] stcai opened a new pull request #59: Fix infinite loop on tcptransport connect

stcai opened a new pull request #59: Fix infinite loop on tcptransport connect
URL: https://github.com/apache/rocketmq-client-cpp/pull/59
 
 
   The run order of these two step below uncertain:
   1. assignment of 'm_ReadDatathread';
   2. thread begin run 'TcpTransport::runThread';
   If the thread runs first, the value of m_ReadDatathread will be NULL, the codes in 'while (m_ReadDatathread) {}' will never be executed, 'm_event_base_status' will never store 'true', so TcpTransport::connect will stay on the loop infintely.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services