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

Issue with iOS sockets resuming after screen is locked #32

Open
figs999 opened this issue Apr 21, 2021 · 0 comments
Open

Issue with iOS sockets resuming after screen is locked #32

figs999 opened this issue Apr 21, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@figs999
Copy link

figs999 commented Apr 21, 2021

When using Ruffles as transport for MLAPI v11, when iOS client device has screen locked for over ~5 seconds, after the device is unlocked Ruffles library begins spamming error messages and the transport stops working entirely.

Error includes this exception in printout:
System.Net.Sockets.SocketException (0x80004005): The socket is not connected

Error message is being printed in the Socket's StartSocketLogic loop.

if (Logging.CurrentLogLevel <= LogLevel.Error) Logging.LogError("Error when receiving from socket: " + e);

This issue appears to be identical to issue that is reported to LiteNetLib repo here:
RevenantX/LiteNetLib#312

For reference on solution, LiteNetLib fixed this issue in the following commits:
RevenantX/LiteNetLib@6142768
RevenantX/LiteNetLib@dac4fea

image

@figs999 figs999 added the bug Something isn't working label Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant