[Gravity] Reconnect to mysql if setting charset fails

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

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

  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
smillernl
  1. 
      
  2. Code looks fine to me, but for easy understanding I think this should be a const

  3. 
      
smillernl
  1. Ship It!
  2. 
      
d.mendes
  1. Ship It!
  2. 
      
pprkut
Review request changed

Status: Closed (submitted)

Change Summary:

Merged into master

Loading...