-
Notifications
You must be signed in to change notification settings - Fork 333
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
ReceivedPong doesn't consider late/not in order pong messages #131
Comments
Hi, we are also investigating the connection timeout.
What do you think? P.S aienabled yes we have extended the deadline also within this if |
BTW, since reporting the issue I have not tried any changes in the |
Hi, I checked and I have an old version of Lidgren (2014) and I didn't have this line of code. m_connection.ResetTimeout (now); I have analyzed the differences between my code and new Lidgren and there is this thing that I don't like:
Why break if you remove a connection? This is the code in my version:
It seems more correct to me. P.S We are investigating why with 11,000+ users at the same time we have group disconnections of about 1000-2000 users. |
@kenfalco I've checked the master branch in this repository and there is no I see, so your issue is different. Not some random user disconnecting but massive disconnects.
It's best to gather more metrics in your application (+GC events), OS, and hardware (CPU/RAM/network). |
Yes you are right I was looking at another version of Lidgren. We have analyzed lidgren's logs and the only message that often appears in the most busy hours is: Socket exception: System.Net.Sockets.SocketException (0x80004005): The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress As soon as possible we will update Lidgren to the latest version. |
@kenfalco I've found a mention that it's related to the packet TTL expiration (even in the case of UDP packets):
You can try increasing packet TTL—for example
will increase it to max possible. I would also recommend temporarily relocating to a new hardware in another datacenter just to ensure the issue is not related to the hardware/network failure. |
Hi, thanks for the advice i will try it. And I fixed it as they say at the end of the post. Then he started giving this other ... NullReferenceException: Object reference not set to an instance of an object. But is Unity + IOS no longer supported? |
@kenfalco I cannot provide a response as I'm not the library developer and not developing any applications for iOS. My contributor bage is only because I've submitted a pull requested and it was accepted. |
Hello!
While investigating random timeout connection issues (on perfect connections) I've noticed that
ReceivedPong
could handle only the latest ping request (m_sentPingNumber
), which is certainly not perfect in some caseslidgren-network-gen3/Lidgren.Network/NetConnection.Latency.cs
Line 90 in c18c8b9
I've also noticed that
NetConnection.ResetTimeout()
call in theNetReliableSenderChannel
to not working as expected...the client is dropping connection by timeout (set as 8 seconds) in some rare but 100% reproducible (for some clients) cases. I will keep investigating this issue.Regards!
The text was updated successfully, but these errors were encountered: