Skip to content

Commit 1bd643c

Browse files
committed
Ignore stream_socket_connect network error
1 parent d503016 commit 1bd643c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bot.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ function loadEnv(string $filePath = __DIR__ . '/.env'): void
413413
&& ! str_ends_with($errstr, 'No address associated with hostname') // Either the DNS or the VPS is acting up
414414
&& ! str_ends_with($errstr, 'Temporary failure in name resolution') // Either the DNS or the VPS is acting up
415415
&& ! str_ends_with($errstr, 'Bad Gateway') // Usually happens if the verifier server's PHP-CGI is down
416+
&& ! str_ends_with($errstr, '(Network is unreachable)') // stream_socket_connect issues within ReactPHP/socket
416417
//&& ! str_ends_with($errstr, 'HTTP request failed!')
417418

418419
//&& ! str_contains($errstr, 'Undefined array key')

0 commit comments

Comments
 (0)