-
Notifications
You must be signed in to change notification settings - Fork 397
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
LuaSocket select
and receivefrom
behaving unexpectedly since Love2d 11.0 (luasocket 3.0-rc1)
#1663
Comments
On macOS in both LÖVE 11.3 and 0.10.2 the |
It's a Windows specific issue indeed. I've stumbled upon it once again but in a different technology stack. The issue is not reproducible if the packets are sent through any other (non-loopback) interface. Fun fact: After installing WireShark to investigate: luasocket no longer blocks on read but returns This issue can be closed. The same way as Windows closes a connection on connectionless UDP :) |
A change got merged into the luasocket repository that supposedly fixes this issue. love 12 has been updated to use a version of luasocket with that fix. |
Minimum code example with explanations below.
Tested on Windows 10 with love2d versions 10.2-11.3.
This is probably an issue with luasocket and not with love2d itself but it hurts.
I'd be glad to hear your thoughts on this and in the meantime I'll check the changes in luasocket out of my own curiosity.
Edit: modified the code to be a little bit more love2d-like, seems like the issue was introduced quite some time ago lunarmodules/luasocket@734cc23#diff-df7a8b28d4e32c5ab91743d465434df979267d91a79ed4d68cfc5a9787159483
Edit2: looks like someone already tried to fix that back in 2013
lunarmodules/luasocket#81
The text was updated successfully, but these errors were encountered: