Skip to content

TCP.Server -> Server.To.Open(host); locks up #95

@glenneroo

Description

@glenneroo

Issue description:
Since upgrading to v4.0.0, calling Server.To.Open(new Host("0.0.0.0")) locks up on my Meta Quest 3 VR headset and it never returns. On my Android smartphone, it locks up for 20-60 seconds but is accepting connections at least but stops logging/locks up a lot. It seems like a threading issue. V3 runs fine. I made only necessary modifications for my V3 -> V4 code but even if I comment everything out and just do Server.To.Open it gets stuck forever.

The same code runs fine on Windows.

Running generic TCP Listener code works fine e.g.
TcpListener listener = new TcpListener(IPAddress.Any, port);
listener.Start();
Thread listenThread = new Thread(ListenLoop);
listenThread.IsBackground = true;
listenThread.Start();

void ListenLoop() {
while (running) {
var client = listener.AcceptTcpClient();
}
}
etc. I can send my TcpEchoServer test code if needed.

With V3 it doesn't lock up but I am unable to connect any devices while server is running on Android. Client can connect fine in iOS/Android.

Steps to reproduce:
Run server code on any Android device.

Minimal reproduction project:

Netly version:
4.0.0

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