|
|
@ -33,22 +33,36 @@ class Connection extends \Yggverse\Yoda\Abstract\Model\Connection |
|
|
|
|
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case 'gemini': |
|
|
|
case 'gemini': // async |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$pid = pcntl_fork(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($pid === 0) |
|
|
|
|
|
|
|
{ |
|
|
|
(new Gemini($this))->request( |
|
|
|
(new Gemini($this))->request( |
|
|
|
$address, |
|
|
|
$address, |
|
|
|
$timeout |
|
|
|
$timeout |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exit; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case 'nex': |
|
|
|
case 'nex': // async |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$pid = pcntl_fork(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($pid === 0) |
|
|
|
|
|
|
|
{ |
|
|
|
(new Nex($this))->request( |
|
|
|
(new Nex($this))->request( |
|
|
|
$address, |
|
|
|
$address, |
|
|
|
$timeout |
|
|
|
$timeout |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exit; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case null: // no scheme provided |
|
|
|
case null: // no scheme provided |
|
|
|