leafo / pgmoon

A pure Lua Postgres driver for use in OpenResty & more
MIT License
390 stars 93 forks source link

attempt to call method 'keepalive' (a nil value) #120

Closed xiangnanscu closed 2 years ago

xiangnanscu commented 2 years ago

I found this commit: https://github.com/leafo/pgmoon/commit/cbc765ab0c9c3507019dc223b52cda39acfcacbb the line return self.sock:keepalive(...) should be return self.sock:setkeepalive(...)

leafo commented 2 years ago

Thanks, will be fixed before new version goes out. Adding a test suite that runs inside of openresty so we can test those codepaths now