国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

workerman 4.1.13, connections無數(shù)據(jù)

administrator

問題描述

workerman 版本 4.1.13,正常啟動(dòng)worker服務(wù)(tcp、http、ws)等后,客戶端正常鏈接,運(yùn)行 php start.php status 顯示正常,但是運(yùn)行 php start.php connections 時(shí),無數(shù)據(jù)返回,檢查代碼后發(fā)現(xiàn)是未找到 .connections 文件

程序代碼或配置

原始代碼 945行左右

$statistics_file =  static::$statusFile ? static::$statusFile : __DIR__ . "/../workerman-$master_pid.$command"

替換為

$statistics_file =  static::$statusFile ? static::$statusFile : __DIR__ . "/../workerman-$master_pid.status"

重現(xiàn)問題的步驟

按代碼的意思是,在執(zhí)行 php start.php connections 命令的時(shí)候,回去查找對(duì)應(yīng)的 workerman-$master_pid.connections 文件,這個(gè)文件是調(diào)用:
writeConnectionsStatisticsToStatusFile() 程序正常運(yùn)行時(shí),卻沒有執(zhí)行到這里

            case \SIGIO:
                static::writeConnectionsStatisticsToStatusFile();
                break;

操作系統(tǒng)環(huán)境及workerman/webman等具體版本

操作系統(tǒng):Linux version 3.10.0-1062.el7.x86_64
PHP版本:PHP 7.3.11 (cli) (built: Apr 11 2020 11:10:11) ( NTS )
workerman: 4.1.13

1389 1 0
1個(gè)回答

walkor 打賞

剛測試了下沒問題,也沒有用戶反饋過這個(gè)問題,需要你本地自己調(diào)試定位下

  • administrator 2023-08-24

    感謝大佬回復(fù),可能是我的姿勢(shì)不對(duì)吧

  • popapple 2024-02-01

    946行
    要將 workerman-$master_pid.$command
    替換成 workerman-{$master_pid}.status
    否則php start.php connections不會(huì)打印出文件內(nèi)容
    這應(yīng)該是試圖將status和connections文件分開但沒有處理好

  • popapple 2024-02-01

    上述bug在4.1.14中穩(wěn)定復(fù)現(xiàn)。不過master主線的5.0版本已經(jīng)修復(fù)了。

  • walkor 2024-02-01

    感謝反饋,下個(gè)版本修復(fù)

年代過于久遠(yuǎn),無法發(fā)表回答
??