mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
draft async request for sync gemini/next api
This commit is contained in:
parent
5b17cf6aca
commit
3ff79cb0be
1 changed files with 24 additions and 10 deletions
|
|
@ -33,21 +33,35 @@ class Connection extends \Yggverse\Yoda\Abstract\Model\Connection
|
|||
|
||||
break;
|
||||
|
||||
case 'gemini':
|
||||
case 'gemini': // async
|
||||
|
||||
(new Gemini($this))->request(
|
||||
$address,
|
||||
$timeout
|
||||
);
|
||||
$pid = pcntl_fork();
|
||||
|
||||
if ($pid === 0)
|
||||
{
|
||||
(new Gemini($this))->request(
|
||||
$address,
|
||||
$timeout
|
||||
);
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case 'nex':
|
||||
case 'nex': // async
|
||||
|
||||
(new Nex($this))->request(
|
||||
$address,
|
||||
$timeout
|
||||
);
|
||||
$pid = pcntl_fork();
|
||||
|
||||
if ($pid === 0)
|
||||
{
|
||||
(new Nex($this))->request(
|
||||
$address,
|
||||
$timeout
|
||||
);
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue