KyranRana / cloudflare-bypass

A new and improved PHP library which bypasses the Cloudflare IUAM page using cURL
MIT License
275 stars 98 forks source link

infinite loop of retries #195

Open momala454 opened 4 years ago

momala454 commented 4 years ago

Description the script cause an infinite loop CFCurlImpl : bypassIUAMPage call exec which in case of error call bypassIUAMPage i noticed the script retried 1325 times before stopping with error Uncaught Error: Call to a member function getDataType()

Or caused : PHP Fatal error: Allowed memory size of 838860800 bytes exhausted (tried to allocate 28672 bytes) in /..../kyranrana/cloudflare-bypass/src/main/CFCurlImpl.php on line 90

Steps to reproduce the issue: 1. 1. 1.

Describe the results you received:

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

Provide some logs

(paste logs)

Version you are using (you may find this information in your composer.lock file)

(paste your output here)

PHP Version you are using

(paste your output here)
vvpgrp commented 4 years ago

Description the script cause an infinite loop CFCurlImpl : bypassIUAMPage call exec which in case of error call bypassIUAMPage i noticed the script retried 1325 times before stopping with error Uncaught Error: Call to a member function getDataType()

Or caused : PHP Fatal error: Allowed memory size of 838860800 bytes exhausted (tried to allocate 28672 bytes) in /..../kyranrana/cloudflare-bypass/src/main/CFCurlImpl.php on line 90

@momala454, File: CFCurlImpl.php from this archive After line: usleep(max(($uamOptions->getDelay() * 1000000) - ((microtime(true) * 1000000) - $time), 0)); comment out line: set_time_limit(30); and after 30 seconds (the default value), the script will stop with the message: the maximum execution time has been exceeded 30 seconds.

momala454 commented 4 years ago

that's not a proper fix, i am using this library to run script that run for hours