Skip to content

Commit

Permalink
websocket reconnection time default 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Apr 9, 2021
1 parent d9b1c3c commit fe1fb56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/WebSocket/SocketServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ private function other($con,$global){
}*/

//公共数据如果60秒内无数据更新,则断开连接重新订阅,重试次数不超过5次
if(isset($con->tag_data_time) && time()-$con->tag_data_time>10*($con->tag_reconnection_num+1) && $con->tag_reconnection_num<=5){
if(isset($con->tag_data_time) && time()-$con->tag_data_time>60*($con->tag_reconnection_num+1) && $con->tag_reconnection_num<=5){
if(in_array($con->tag,$this->public_url)) {
//public
$con->close();
Expand Down

0 comments on commit fe1fb56

Please sign in to comment.