You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all! I use Medoo in conjunction with PHP-DI and run it all on Workerman. After some time, a problem occurs with connecting to the database and a timeout appears - MySQL server has gone away. Please suggest options for how to beautifully implement automatic reconnection in case of an error. I was thinking about somehow reconnecting when receiving Medoo from the container...
Here is my code for injecting Medoo into a container:
@catfan in fact, it would be nice to see an option in the library to automatically reconnect when a timeout occurs. Still, it’s not for nothing that it’s called a library - it should add new functionality.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all! I use Medoo in conjunction with PHP-DI and run it all on Workerman. After some time, a problem occurs with connecting to the database and a timeout appears -
MySQL server has gone away
. Please suggest options for how to beautifully implement automatic reconnection in case of an error. I was thinking about somehow reconnecting when receiving Medoo from the container...Here is my code for injecting Medoo into a container:
@catfan in fact, it would be nice to see an option in the library to automatically reconnect when a timeout occurs. Still, it’s not for nothing that it’s called a library - it should add new functionality.
Thanks in advance everyone!
Beta Was this translation helpful? Give feedback.
All reactions