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

improve PausedSocketFix, Fix peerIdsQueue #549

Closed
wants to merge 3 commits into from

Conversation

FirstGearGames
Copy link
Contributor

  • Added PausedSocketFix usage is now optional via NetManager ctor. Default set to use.
  • Fixed peer Ids not returning to _peerIdsQueue.
  • Improved queue usage to be more flexible with other applications.
  • Improved added error checking for when no more peerIds are available.
  • Changed _lastPeerId to _nextPeerId for clarity.
  • Changed UNITY_2018__3_OR_NEWER define related to PausedSocketFix to UNITY_SOCKET_FIX for clarity.

FirstGearGames added 2 commits April 26, 2024 17:13
- Added PausedSocketFix usage is now optional via NetManager ctor. Default set to use.
- Fixed peer Ids not returning to _peerIdsQueue.
- Improved queue usage to be more flexible with other applications.
- Improved added error checking for when no more peerIds are available.
- Changed _lastPeerId to _nextPeerId for clarity.
- Changed UNITY_2018__3_OR_NEWER define related to PausedSocketFix to UNITY_SOCKET_FIX for clarity.
Copy link
Contributor Author

@FirstGearGames FirstGearGames left a comment

Choose a reason for hiding this comment

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

Fix to 1 failed check.

Changed addable check for peerIds to <= 0 rather than 0.
Copy link
Contributor Author

@FirstGearGames FirstGearGames left a comment

Choose a reason for hiding this comment

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

Changed addable check for peerIds to <= 0 rather than == 0.
Value should never be below 0, but better safe than sorry.

@RevenantX
Copy link
Owner

Can you separate please PeerIds commit and PausedSocketFix?

@FirstGearGames
Copy link
Contributor Author

Can you separate please PeerIds commit and PausedSocketFix?

Yeah absolutely. It might take me a couple days(maybe not), but I will.

@FirstGearGames
Copy link
Contributor Author

Closing this to make separate PRs.

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.

None yet

2 participants