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

Replaced lidgren with litenetlib for connection lost issues #652

Closed
wants to merge 1 commit into from

Conversation

DerTyan
Copy link
Contributor

@DerTyan DerTyan commented Jan 21, 2019

Replaced lidgren as the networking library with litenetlib as an attempt to resolve the connection lost issue some people encounter, that were not based on port forwarding issues.
After some hours of testing, no random disconnects occurred in our testing environment, when before they occurred approximately every 0.5-5 minutes.
For absolute clarification, if this is the reason for the random disconnects, further testing with the community is required.

On the technical side:
The code is loosely based on the networking branch.
I had to create a WrapperPacket for the litenetlib serializer because I did not want to refactor the whole packet handling. For better performance (maybe?) it would be possible to refactor the packet handling.

@Sunrunner37
Copy link
Member

I think we'll want to refactor this so we can support multiple parallel implementations (at least for the time being). Ideally, users can select the implementations via the configuration file in the server. Clients can either try both when connecting or negotiate with a primary and switch to the secondary if required. Thoughts?

@DerTyan
Copy link
Contributor Author

DerTyan commented Jan 24, 2019

That would be great. Me and my friend will consider an implementation of that feature and keep you updated.

@DerTyan
Copy link
Contributor Author

DerTyan commented Jan 25, 2019

Parallel implementation in #664

@DerTyan DerTyan closed this Jan 25, 2019
@DerTyan DerTyan deleted the litenetlib branch January 27, 2019 12:12
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