iBaoger
V2EX  ›  Node.js

关于 nodejs 的 ECONNRESET 异常怎么处理

  •  
  •   iBaoger · Aug 17, 2018 · 10059 views
    This topic created in 3006 days ago, the information mentioned may be changed or developed.

    在 nodejs 上构建应用,当发起大量 http/https 请求后,就会触发 ECONNRESET 异常,此异常出现 2 次时,整个应用假死,只有重启进程,尝试用各种手段捕获异常都未成功

    6 replies  •  2018-08-17 16:17:05 +08:00
    cctv1005s927
    cctv1005s927
    Aug 17, 2018
    1
    是不是写了阻塞代码?
    whypool
    whypool
    Aug 17, 2018
    2
    用 process 监听报错
    reus
    reus
    Aug 17, 2018
    3
    换 go
    GrahamACER
    GrahamACER
    Aug 17, 2018
    4
    怀疑也是阻塞了
    iBaoger
    iBaoger
    OP
    Aug 17, 2018 via Android
    5
    @whypool 试过了,没用
    iBaoger
    iBaoger
    OP
    Aug 17, 2018 via Android
    6
    @cctv1005s927 用的 request.js 非阻塞接口
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1014 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 18:42 · PVG 02:42 · LAX 10:42 · JFK 13:42
    ♥ Do have faith in what you're doing.