mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-01-20 10:52:15 +01:00
Use retrieveURLasync in ykval-common instead.
This commit is contained in:
parent
201416b15a
commit
32c94e9256
@ -406,7 +406,7 @@ class SyncLib
|
||||
/*
|
||||
Send out requests
|
||||
*/
|
||||
$ans_arr=$this->retrieveURLasync($urls, $ans_req, $timeout);
|
||||
$ans_arr=$this->retrieveURLasync_wrap($urls, $ans_req, $timeout);
|
||||
|
||||
if (!is_array($ans_arr)) {
|
||||
$this->log(LOG_WARNING, 'No responses from validation server pool');
|
||||
@ -510,6 +510,10 @@ class SyncLib
|
||||
else return 0;
|
||||
}
|
||||
|
||||
function retrieveURLasync_wrap ($urls, $ans_req=1, $timeout=1.0)
|
||||
{
|
||||
return retrieveURLasync("YK-VAL sync", $urls, $ans_req, $match="status=OK", $returl=True, $timeout);
|
||||
}
|
||||
|
||||
/*
|
||||
This function takes a list of URLs. It will return the content of
|
||||
@ -520,7 +524,7 @@ class SyncLib
|
||||
URLs fail, data from some URL that did not match parameter $match
|
||||
(defaults to ^OK) is returned, or if all URLs failed, false.
|
||||
*/
|
||||
function retrieveURLasync ($urls, $ans_req=1, $timeout=1.0) {
|
||||
function retrieveURLasync_old ($urls, $ans_req=1, $timeout=1.0) {
|
||||
$mh = curl_multi_init();
|
||||
|
||||
$ch = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user