luasql icon indicating copy to clipboard operation
luasql copied to clipboard

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

Open fabianloayzarivera opened this issue 7 years ago • 0 comments

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.

fabianloayzarivera avatar Mar 23 '17 14:03 fabianloayzarivera