You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested on an Ubuntu 20.04 virtual machine inside VirtualBox.
Issue description:
Calling listen with the same port number sequentially on two PacketPeerUDP instances should fail with error code 2. This happens on Windows, but on Linux it succeeds. You can even see there's two identical entries here:
Steps to reproduce:
Create two PacketPeerUDP instances and call listen on the same port. Can someone see if they can duplicate this issue? I'm not 100% confident posting an issue based on results on a virtual machine. It's using a bridged networking adapter, for what that's worth.
The problem is that we enable SO_REUSEADDR which behaves differently between windows and linux (and is thus disabled on Windows).
I guess this is a bug, and SO_REUSEADDR should NOT be used for UDP.
I'll make a PR.
Godot version:
Godot 3.2.2.
OS/device including version:
Tested on an Ubuntu 20.04 virtual machine inside VirtualBox.
Issue description:
Calling listen with the same port number sequentially on two PacketPeerUDP instances should fail with error code 2. This happens on Windows, but on Linux it succeeds. You can even see there's two identical entries here:
Steps to reproduce:
Create two PacketPeerUDP instances and call listen on the same port. Can someone see if they can duplicate this issue? I'm not 100% confident posting an issue based on results on a virtual machine. It's using a bridged networking adapter, for what that's worth.
Minimal reproduction project:
New Game Project.zip
The text was updated successfully, but these errors were encountered: