mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-24 01:53:58 +01:00
Update StreamHandler.php
connection attempt failed
This commit is contained in:
parent
2d4b3f5fcd
commit
009cfa9151
@ -60,7 +60,7 @@ class StreamHandler
|
||||
if (strpos($message, 'getaddrinfo') // DNS lookup failed
|
||||
|| strpos($message, 'Connection refused')
|
||||
|| strpos($message, "couldn't connect to host") // error on HHVM
|
||||
|| strpos($message, "failed to open stream")
|
||||
|| strpos($message, "connection attempt failed")
|
||||
) {
|
||||
$e = new ConnectException($e->getMessage(), $request, $e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user