Skip to content

How to reconnect when Receiver fails? #21

@baek-eng

Description

@baek-eng

I am seeing the following error message:

Error: [OSCReceiver] Receive error: System.Net.Sockets.SocketException (0x80004005): The socket is not connected
at System.Net.Sockets.SocketAsyncResult.CheckIfThrowDelayedException () [0x00000] in <00000000000000000000000000000000>:0
at System.Net.Sockets.Socket.EndReceiveFrom (System.IAsyncResult asyncResult, System.Net.EndPoint& endPoint) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.Sockets.UdpClient.EndReceive (System.IAsyncResult asyncResult, System.Net.IPEndPoint& remoteEP) [0x00000] in <00000000000000000000000000000000>:0
at extOSC.Core.Network.OSCReceiverStandaloneBackend.Receive (System.Net.Sockets.UdpClient receivedClient, System.IAsyncResult result) [0x00000] in <00000000000000000000000000000000>:0
at extOSC.Core.Network.OSCReceiverStandaloneBackend.ControllerThread (System.IAsyncResult result) [0x00000] in <00000000000000000000000000000000>:0
at System.AsyncCallback.Invoke (System.IAsyncResult ar) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.WaitCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0

I am seeing that we're swallowing the exception here:

Debug.LogError($"[OSCReceiver] Receive error: {e}");

Is there a way to reconnect on receive failure? (or does it reconnect automatically?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions