Issue #490 invalid

Passing an UDP socket from thread to thread crashes program

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. kikito

    I don't think this is a bug neither. Threads can share (some kinds of) userdata and elemental types. Not even tables are allowed, for a reason.

  3. Log in to comment