Skip to content

fix: flushing send and receive queues upon disconnection#2274

Merged
jeffreyrainy merged 1 commit intodevelopfrom
fix/mtt-3140-flush-connections
Oct 25, 2022
Merged

fix: flushing send and receive queues upon disconnection#2274
jeffreyrainy merged 1 commit intodevelopfrom
fix/mtt-3140-flush-connections

Conversation

@jeffreyrainy
Copy link
Copy Markdown
Contributor

Addresses
https://jira.unity3d.com/browse/MTT-3140

Should serve as foundation for "disconnection reasons" features, etc.

private void DisconnectRemoteClient(ulong clientId)
{
var transportId = ClientIdToTransportId(clientId);
MessagingSystem.ProcessSendQueues();
Copy link
Copy Markdown
Contributor Author

@jeffreyrainy jeffreyrainy Oct 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any obvious timing issue with doing these two calls at those locations? I wonder if not doing them at a specific point in the frame could lead to knock-on effects.

@jeffreyrainy jeffreyrainy marked this pull request as ready for review October 24, 2022 19:00
@jeffreyrainy jeffreyrainy requested a review from a team as a code owner October 24, 2022 19:00
@jeffreyrainy jeffreyrainy merged commit fc6e757 into develop Oct 25, 2022
@jeffreyrainy jeffreyrainy deleted the fix/mtt-3140-flush-connections branch October 25, 2022 15:17
jakobbbb pushed a commit to GooseGirlGames/com.unity.netcode.gameobjects that referenced this pull request Feb 22, 2023
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.

2 participants