lua-resty-redis icon indicating copy to clipboard operation
lua-resty-redis copied to clipboard

How to handle tcp socket timeouts error handling?

Open kkmuffme opened this issue 5 years ago • 0 comments
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)

kkmuffme avatar Apr 09 '20 08:04 kkmuffme