sada 05ed330d72 BUG/MINOR: lua: Socket.send threw runtime error: 'close' needs 1 arguments.
Function `hlua_socket_close` expected exactly one argument on the Lua stack.
But when `hlua_socket_close` was called from `hlua_socket_write_yield`,
Lua stack had 3 arguments. So `hlua_socket_close` threw the exception with
message "'close' needs 1 arguments".

Introduced new helper function `hlua_socket_close_helper`, which removed the
Lua stack argument count check and only checked if the first argument was
a socket.

This fix should be backported to 1.8, 1.7 and 1.6.
2018-05-18 13:48:21 +02:00
..
2018-01-25 22:25:40 +01:00
2018-04-26 14:19:33 +02:00
2018-04-26 14:19:33 +02:00
2018-04-16 15:51:57 +02:00
2018-04-26 14:19:33 +02:00
2018-04-26 14:19:33 +02:00
2017-10-25 04:45:48 +02:00
2018-04-26 14:19:33 +02:00
2018-04-26 14:19:33 +02:00
2018-04-26 14:19:33 +02:00
2016-04-03 14:17:42 +02:00