[Gravity] Reconnect to mysql if setting charset fails

Review Request #789 — Created Aug. 2, 2021 and submitted — Latest diff uploaded

pprkut
Lunr
531c1a6...
lunr
Sometimes settings a charset fails immediately after establishing a
connection with something like

E_WARNING: Packets out of order. Expected 1 received 0. Packet size=87
E_WARNING: mysqli::set_charset(): Error executing query

In that case, immediately try to reconnect to the db until setting
a charset succeeds, or abort with a ConnectionException.

Unit tests

Loading...