lunarmodules / luasql

LuaSQL is a simple interface from Lua to a DBMS.
http://lunarmodules.github.io/luasql
535 stars 192 forks source link

Connection and env close() method causes a 5 second delay in synchronous lua script #71

Open fabianloayzarivera opened 7 years ago

fabianloayzarivera commented 7 years ago

I have an script on lua. Which works just fine using the luasql-mysql 2.3.0-1 rock, since the update to luasql-mysql 2.3.5-1 the close() methods create a delay (more like a sleep) of approx 5 Seconds, and then the script continues to run. `sqlenv = assert (luasql.mysql()) sqlcon = assert (sqlenv:connect(database,database_username,database_password,database_host))

sqlcon:close() sqlenv:close()`

The close method for connection and environment causes this issue, I downgraded my rock to luasql-mysql 2.3.0-1 and the issue was gone.