in reply to DBI keep alive
Sup Monks!
Thanks to everyone for the advice and especially NERDVANA. Yes, indeed, i have tried to disable AutoCommit and mysql_auto_reconnect on Centos and after that it didn't try to reconnect, BUT in Debian it just doesn't work, no matter if you enable it or disable it. So it seems to me, that we have a bug here.