Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug when crafting HS response after received waveahand version 4 #354

Merged
merged 4 commits into from
Jun 12, 2018

Conversation

ethouris
Copy link
Collaborator

The following problems are solved:

  • It could happen that the CUDT::createSrtHandshake, called from within CUDT::updateConnStatus when a new handshake packet comes in, did not made itself aware yet that the peer is HSv4. The recognition is added and for that case it is made sure that the handshake is crafted exclusively according to the HSv4 rules, that is:
    • Version is 4
    • Type is 2 (UDT_DGRAM), not a bit flag combination used for HSv5.
  • Handling the CONN_REJECT case, which still is possible for various circumstances in which this function is being called
  • Added a comment for prospective fix in future: the m_ConnRes field should be rather always filled by the incoming handshake and m_ConnReq by the handshake that is prepared to be send to the peer. This is currently not done in case of blocking-mode caller. This is not fixed as this doesn't change anything in the functionality, only may make the code more consistent.

@rndi rndi merged commit f9c9e3c into Haivision:master Jun 12, 2018
@ethouris ethouris deleted the dev-fix-old-rendezvous branch January 23, 2019 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants