Skip to content

Commit 1d7eb22

Browse files
Support the reconnection mechanism after the maximum number of requests is reached (#6701)
Co-authored-by: 李铭昕 <715557344@qq.com>
1 parent df5f2e9 commit 1d7eb22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/SocketFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ public function refresh(): void
6464
'recv_timeout' => $this->config['recv_timeout'] ?? 10,
6565
'connect_timeout' => $this->config['connect_timeout'] ?? 0.5,
6666
'heartbeat' => $this->config['heartbeat'] ?? null,
67+
'max_requests' => $this->config['max_requests'] ?? 0,
68+
'max_wait_close_seconds' => $this->config['max_wait_close_seconds'] ?? 0.5,
6769
]);
6870
if ($this->container->has(StdoutLoggerInterface::class)) {
6971
$client->setLogger($this->container->get(StdoutLoggerInterface::class));

0 commit comments

Comments
 (0)