Skip to content

Instantly share code, notes, and snippets.

View christiaangoossens's full-sized avatar
🚅
Always busy, quick like a train.

Christiaan Goossens christiaangoossens

🚅
Always busy, quick like a train.
View GitHub Profile
@christiaangoossens
christiaangoossens / RobustPDO.php
Last active December 8, 2019 14:01 — forked from cjthompson/RobustPDO.php
Extended PDO class that detects dropped connections and reconnects on all things that Eloquent ORM would also reconnect on.
<?php
class RobustPDO extends PDO
{
/** Call setAttribute to set the session wait_timeout value */
const ATTR_MYSQL_TIMEOUT = 100;
/** @var array */
protected $config = [];
/** @var bool For lazy connection tracking */

Keybase proof

I hereby claim:

  • I am christiaangoossens on github.
  • I am chrgnl (https://keybase.io/chrgnl) on keybase.
  • I have a public key whose fingerprint is 026C A1E0 3CD5 EC77 B14F B399 DF30 EF7A C072 9676

To claim this, I am signing this object: