Skip to content

fix: Clear UnityTransport reliable receive queues on shutdown#2011

Merged
0xFA11 merged 2 commits intodevelopfrom
fix/clear-utp-reliable-queues-on-shutdown
Jun 14, 2022
Merged

fix: Clear UnityTransport reliable receive queues on shutdown#2011
0xFA11 merged 2 commits intodevelopfrom
fix/clear-utp-reliable-queues-on-shutdown

Conversation

@simon-lemay-unity
Copy link
Copy Markdown
Contributor

If UnityTransport was shut down and then the same instance of the object was re-initialized, it was possible to reuse the previous reliable receive queues. This could have caused corruption of the data stream if an incomplete message was stored inside those queues.

This might fix MTT-3685, but it's very much a stretch. In fact, I'm not sure this fix is actually addressing something that ever was a problem to begin with. I'm submitting the fix more for completeness's sake than anything.

Changelog

N/A (Didn't think it was worthy of a changelog entry.)

Testing and Documentation

  • No tests have been added.
  • No documentation changes or additions were necessary.

@simon-lemay-unity simon-lemay-unity requested a review from a team as a code owner June 13, 2022 15:15
@simon-lemay-unity simon-lemay-unity requested a review from 0xFA11 June 13, 2022 17:54
@0xFA11 0xFA11 enabled auto-merge (squash) June 14, 2022 01:26
@0xFA11 0xFA11 merged commit f9228d2 into develop Jun 14, 2022
@0xFA11 0xFA11 deleted the fix/clear-utp-reliable-queues-on-shutdown branch June 14, 2022 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants