How to handle ETIMEDOUT error?

后端 未结 3 511
感情败类
感情败类 2020-12-05 05:26

How to handle etimedout error on this call ?

 var remotePath = \"myremoteurltocopy\"
 var localStream = fs.createWriteStream(\"myfil\");;
        var out = r         


        
3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 05:36

    In case if you are using node js, then this could be the possible solution

    const express = require("express");
    const app = express();
    const server = app.listen(8080);
    server.keepAliveTimeout = 61 * 1000;
    

    https://medium.com/hk01-tech/running-eks-in-production-for-2-years-the-kubernetes-journey-at-hk01-68130e603d76

提交回复
热议问题