FriendsOfPHP / Goutte

Goutte, a simple PHP Web Scraper
MIT License
9.26k stars 1.01k forks source link

stuck at a particular proxy address #362

Open mepanko91 opened 5 years ago

mepanko91 commented 5 years ago

Request stuck at a proxy address. Timeout is not working. My configuration :

$client = new Client();
$guzzleClient = new GuzzleClient(array(
    'timeout' => 120,
    'connect_timeout' => 30,
    'read_timeout' => 90,
    'cookies' => true,
    'allow_redirects' => false,
    'strict'          => false,
    'referer'         => true,
    'protocols'       => ['http', 'https'],
    'verify' => false,
    'proxy' => "http://45.55.23.78:8080"
    'request.options' => [ 'timeout' => 120]
));
$client->setClient($guzzleClient);

The request get stuck indefinitely. A temp file in PHP TEMP FILE DIRECTORY gets created with its name keep changing. Please help