Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita9801e7

Browse files
committed
feat:redis:database:修改默认连接timeout=5s
1 parentf5bc02b commita9801e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/Subscriber.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Subscriber
2828
* 超时
2929
* @var float
3030
*/
31-
public$timeout =10.0;
31+
public$timeout =5.0;
3232

3333
/**
3434
* 密码
@@ -56,7 +56,7 @@ class Subscriber
5656
* @param float $timeout
5757
* @throws \Swoole\Exception
5858
*/
59-
publicfunction__construct(string$host,int$port =6379,string$password ='',float$timeout =10.0)
59+
publicfunction__construct(string$host,int$port =6379,string$password ='',float$timeout =5.0)
6060
{
6161
$this->host =$host;
6262
$this->port =$port;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp