Skip to content

Issue with iOS sockets resuming after screen is locked #32

@figs999

Description

@figs999

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions