Skip to content

Commit

Permalink
Update Connection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax authored Dec 14, 2022
1 parent 274eb1c commit e070611
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Bridge/Nette/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public function connect() : void
} catch (\PDOException $e) {
if (\str_contains($e->getMessage(), 'reset by peer')) {
parent::connect(); // retry

return;
}

throw $e;
Expand Down

0 comments on commit e070611

Please sign in to comment.