Skip to content

Conversation

@stcai
Copy link
Contributor

@stcai stcai commented Jan 8, 2019

The execution order of these two steps below are uncertain:

  1. Assignment of 'm_ReadDatathread';
  2. The thread runs 'TcpTransport::runThread';

If the thread runs first, the value of m_ReadDatathread will be NULL, the codes inside 'while (m_ReadDatathread) {}' will never be executed, then 'm_event_base_status' will never store 'true', so TcpTransport::connect will stay on the loop infintely.

@ShannonDing
Copy link
Member

Could you please review the PR #60 ?

@stcai
Copy link
Contributor Author

stcai commented Jan 8, 2019

OK, I will have a look at it.

@ShannonDing ShannonDing changed the title Fix infinite loop on tcptransport connect [ISSUE #52]Fix infinite loop on tcptransport connect Jan 9, 2019
@ShannonDing
Copy link
Member

while polishing the PR #60, this PR will be merged first.

@ShannonDing ShannonDing added the bug Something isn't working label Jan 14, 2019
@ShannonDing ShannonDing added this to the 1.2.1 milestone Jan 14, 2019
@ShannonDing ShannonDing merged commit 83b8eca into apache:master Jan 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants