We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When used in a loop, there is a problem that Get/Post/Request adds new links to the list, but they are not discarded after execute.
static::$obHttpClient = new \AngryCurl(function ($strResponse, $arInfo, $obRequest) { return static::loadPage($strResponse, $arInfo, $obRequest); }); if ($debugMode) { static::$obHttpClient->init_console(); } static::$obHttpClient->load_proxy_list(static::getProxyList()); static::$obHttpClient->load_useragent_list(static::getUserAgentList()); while (!empty(static::$arUrlQueue)) { static::$obHttpClient->clearRollings(); foreach (static::$arUrlQueue as $strLink => $intLeftTryConnect) { static::$obHttpClient->get($strLink); } static::$obHttpClient->execute(2); }
If we have groups of 10 links, then after the fifth cycle of links will be already 50 (10, 20, 30, 40, 50)
Solution - clean \RollingCurl::$requests after each execute(); Or add method to \RollingCurl
public function clearRollings() { $this->requests = []; }
Please do, because the library is very good.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When used in a loop, there is a problem that Get/Post/Request adds new links to the list, but they are not discarded after execute.
If we have groups of 10 links, then after the fifth cycle of links will be already 50 (10, 20, 30, 40, 50)
Solution - clean \RollingCurl::$requests after each execute();
Or add method to \RollingCurl
Please do, because the library is very good.
The text was updated successfully, but these errors were encountered: