mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 18:27:44 +08:00
Support the reconnection mechanism after the maximum number of requests is reached (#6701)
Co-authored-by: 李铭昕 <715557344@qq.com>
This commit is contained in:
parent
355534feca
commit
c5b9a96b24
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user