lua-resty-redis
lua-resty-redis copied to clipboard
How to handle tcp socket timeouts error handling?
trafficstars
We get a few "lua tcp socket read timed out" errors and I'd like to add proper error handling for it.
I thought I have already implemented correct error handling for all commands like:
local redok, rederr = red:connect(redis_pool[counter])
(& then handling the redok/rederr case; also for all get/mget,...)
But I still get these error in nginx error log.
(Note: I do NOT have set lua_socket_log_errors off; yet, since I want to be sure I have errors handled correctly before doing that)