Passing an UDP socket from thread to thread crashes program

Issue #490 invalid
Anonymous created an issue

set() gives no issue, but trying to get() the socket in either the main thread or a secondary thread instantly crashes the program. Makes no difference whether using a connected or freshly created unconnected socket.

Comments (3)

  1. Boolsheet

    The love.thread module only supports the transfer of LÖVE userdata. Hm, I hought this was mentioned somewhere, but it doesn't look like it.

    Anyway, I don't think LuaSocket is thread-safe and that is a very good reason to keep all LuaSocket access in one thread only.

  2. Log in to comment