Support the reconnection mechanism after the maximum number of requests is reached (#6701)

Co-authored-by: 李铭昕 <715557344@qq.com>
This commit is contained in:
Deeka Wong 2024-04-22 09:40:39 +08:00 committed by GitHub
parent 355534feca
commit c5b9a96b24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,6 +64,8 @@ class SocketFactory
'recv_timeout' => $this->config['recv_timeout'] ?? 10,
'connect_timeout' => $this->config['connect_timeout'] ?? 0.5,
'heartbeat' => $this->config['heartbeat'] ?? null,
'max_requests' => $this->config['max_requests'] ?? 0,
'max_wait_close_seconds' => $this->config['max_wait_close_seconds'] ?? 0.5,
]);
if ($this->container->has(StdoutLoggerInterface::class)) {
$client->setLogger($this->container->get(StdoutLoggerInterface::class));