I use luasocket and copas to run the chat server. You need to free the port (i.e. server:close() ) when the program ends. How can you perform this task without using C, if possible?
Attempts to use the module did not help, because the server finalizer was invoked before client finalization (I also disable them as finalizers).