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

gatewayWorker中的錯誤

qqxxr

問題描述

使用gatewayWorker開發(fā)的websocket服務(wù),在寶塔環(huán)境下,配置nginx代理后,nginx偶爾會報

錯誤1:
[error] 1511926#0: *51138 recv() failed (104: Connection reset by peer) while reading response header from upstream, client:xxxx

錯誤2:
[error] 3219339#0: *10411652 send() failed (32: Broken pipe) while proxying upgraded connection, client: 117.136.62.231

程序代碼

nginx的配置:
location / {
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header Host $host;
      proxy_set_header X-Forwarded-Proto $scheme;
      proxy_http_version 1.1;
      proxy_set_header Connection "";
      if (!-f $request_filename){
          proxy_pass http://127.0.0.1:7273;
      }
    }

報錯信息

錯誤1:
[error] 1511926#0: *51138 recv() failed (104: Connection reset by peer) while reading response header from upstream, client:xxxx

錯誤2:
[error] 3219339#0: *10411652 send() failed (32: Broken pipe) while proxying upgraded connection, client: 117.136.62.231

操作系統(tǒng)及workerman/webman等框架組件具體版本

"workerman/gateway-worker": "^3.0",

Nginx 1.22.1

896 1 0
1個回答

walkor 打賞

reload,restart 會導(dǎo)致這樣的報錯,可以忽略

  • qqxxr 2024-03-05

    我基本上沒有reload和restart過,一直在運行,除非要發(fā)布的時候。幾天沒有你說的這2個操作,依舊會報錯

  • walkor 2024-03-05

    看下workerman.log日志

  • walkor 2024-03-05

    錯誤一天多少條?

  • qqxxr 2024-03-05

    一天零星1-4條吧,同時在線有個500+。

    日志:2024-01-31 17:00:21 pid:1656330 Workerman[start.php] has been stopped
    2024-01-31 17:00:21 pid:1713163 Workerman[start.php] stop success
    2024-01-31 17:00:24 pid:1713307 Workerman[start.php] start in DAEMON mode
    2024-01-31 17:00:35 pid:1713828 Workerman[start.php] status
    2024-01-31 17:18:54 pid:1762820 Workerman[start.php] status
    2024-01-31 17:18:59 pid:1763041 Workerman[start.php] status
    2024-01-31 18:05:34 pid:1888235 Workerman[start.php] status
    2024-01-31 18:09:54 pid:1900842 Workerman[start.php] status
    2024-01-31 18:14:08 pid:1912516 Workerman[start.php] status
    2024-01-31 18:15:34 pid:1916401 Workerman[start.php] status
    2024-01-31 18:18:20 pid:1924105 Workerman[start.php] status
    2024-01-31 18:18:39 pid:1924712 Workerman[start.php] status
    2024-02-01 09:21:20 pid:3208460 Workerman[start.php] status
    2024-02-22 14:17:32 pid:3708738 Workerman[start.php] status

  • qqxxr 2024-03-05

    這都是最新的日志了

  • walkor 2024-03-05

    Broken pipe 那條應(yīng)該是客戶端與nginx交互的時候客戶端關(guān)閉導(dǎo)致,和gatewayWorker沒關(guān)系。
    Connection reset by peer 具體報錯時間是?

  • walkor 2024-03-05

    還有websocket心跳間隔是?

  • qqxxr 2024-03-05

    心跳30S

    最新的:
    2024/03/02 23:33:47 [error] 3219339#0: 10246953 send() failed (32: Broken pipe) while proxying upgraded connection, client: 39.144.153.183,
    2024/03/03 21:49:22 [error] 3219339#0:
    10335155 send() failed (32: Broken pipe) while proxying upgraded connection, client: 39.144.249.17,
    2024/03/03 21:52:38 [error] 3219339#0: 10335557 send() failed (32: Broken pipe) while proxying upgraded connection, client: 39.144.249.17,
    2024/03/04 01:09:10 [error] 3219339#0:
    10363410 send() failed (32: Broken pipe) while proxying upgraded connection, client: 39.144.249.17,
    2024/03/04 10:33:29 [error] 3219339#0: 10411652 send() failed (32: Broken pipe) while proxying upgraded connection, client: 117.136.62.231,
    2024/03/05 01:49:38 [error] 3219339#0:
    10461341 send() failed (32: Broken pipe) while proxying upgraded connection, client: 39.144.228.100,

  • qqxxr 2024-03-05

    024/02/26 01:17:55 [error] 3219339#0: *9569074 send() failed (104: Connection reset by peer) while proxying upgraded connection, client: 221.222.21.192

    2024/03/02 12:12:59 [error] 3219339#0: *10177168 send() failed (104: Connection reset by peer) while proxying upgraded connection

  • qqxxr 2024-03-05

    php event擴(kuò)展開了

  • walkor 2024-03-05

    看起來是瀏覽器和nginx之間的連接異常導(dǎo)致的,網(wǎng)絡(luò)丟包什么的都可能出現(xiàn),一天1-4條就不用管了,有重連就行

  • qqxxr 2024-03-05

    ok,我目測是客戶端端了吧

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