改名
This commit is contained in:
@@ -505,7 +505,6 @@ class Request extends HttpService
|
||||
|
||||
/**
|
||||
* @param $fd
|
||||
* @param $port
|
||||
* @param Server $server
|
||||
* @param $data
|
||||
* @param int $reID
|
||||
@@ -514,7 +513,7 @@ class Request extends HttpService
|
||||
* @throws ReflectionException
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function createListenRequest($fd, $port, Server $server, $data, $reID = 0): Request
|
||||
public static function createListenRequest($fd, Server $server, $data, $reID = 0): Request
|
||||
{
|
||||
/** @var Request $sRequest */
|
||||
$sRequest = Snowflake::createObject(Request::class);
|
||||
@@ -523,6 +522,8 @@ class Request extends HttpService
|
||||
$sRequest->clientInfo = self::getClientInfo($fd, $reID);
|
||||
$sRequest->startTime = microtime(true);
|
||||
|
||||
$port = $sRequest->clientInfo['server_port'];
|
||||
|
||||
$sRequest->params = new HttpParams(['body' => $data], [], []);
|
||||
|
||||
$sRequest->headers = new HttpHeaders([]);
|
||||
|
||||
Reference in New Issue
Block a user