Hello!
On Sat, Jul 19, 2014 at 2:01 AM, vitaly.kosenko wrote:
> Could you explain the meaning of "set_timeout" in resty-mysql? Is it time
> for sleep after every mysql operation? Or what is subsequent operations?
It's the waiting time threshold between successive IO events (like
epoll read events and write events on Linux) on the MySQL connection.
> Why
> should I protect them?
>
Because bad things can almost always happen in your OS network stack,
or the wire, or your MySQL server (you name it!) and make your query
stuck. And the MySQL client should not wait forever (or too long) in
such extreme cases.
Regards,
-agentzh