Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/core/Database/DetectsLostConnections.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class DetectsLostConnections
*/
private const ERROR_MESSAGES = [
'server has gone away',
'Server has gone away',
'no connection to the server',
'Lost connection',
'is dead or not enabled',
Expand Down Expand Up @@ -47,6 +48,9 @@ class DetectsLostConnections
'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known',
'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for',
'SQLSTATE[HY000]: General error: 7 SSL SYSCALL error: EOF detected',
'SSL error: unexpected eof',
'SQLSTATE[HY000] [2002] Connection timed out',
'SSL: Connection timed out',
'SQLSTATE[HY000]: General error: 1105 The last transaction was aborted due to Seamless Scaling. Please retry.',
'Temporary failure in name resolution',
'SQLSTATE[08S01]: Communication link failure',
Expand All @@ -56,12 +60,35 @@ class DetectsLostConnections
'SQLSTATE[08006] [7] could not translate host name',
'TCP Provider: Error code 0x274C',
'SQLSTATE[HY000] [2002] No such file or directory',
'SSL: Operation timed out',
'Reason: Server is in script upgrade mode. Only administrator can connect at this time.',
'Unknown $curl_error_code: 77',
'SSL: Handshake timed out',
'SQLSTATE[08006] [7] SSL error: sslv3 alert unexpected message',
'SQLSTATE[08006] [7] unrecognized SSL error code:',
'SQLSTATE[HY000] [1045] Access denied for user',
'SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it',
'SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond',
'SQLSTATE[HY000] [2002] Network is unreachable',
'SQLSTATE[HY000] [2002] The requested address is not valid in its context',
'SQLSTATE[HY000] [2002] A socket operation was attempted to an unreachable network',
'SQLSTATE[HY000] [2002] Operation now in progress',
'SQLSTATE[HY000] [2002] Operation in progress',
'SQLSTATE[HY000]: General error: 3989',
'went away',
'No such file or directory',
'server is shutting down',
'failed to connect to',
'Channel connection is closed',
'Connection lost',
'Broken pipe',
'SQLSTATE[25006]: Read only sql transaction: 7',
'vtgate connection error: no healthy endpoints',
'primary is not serving, there may be a reparent operation in progress',
'current keyspace is being resharded',
'no healthy tablet available',
'transaction pool connection limit exceeded',
'SSL operation failed with code 5',
// PDO::prepare(): Send of 77 bytes failed with errno=110 Operation timed out
// SSL: Handshake timed out
// SSL: Operation timed out
Expand Down
Loading