📜  node express js 设置服务器超时 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:23.111000             🧑  作者: Mango

代码示例1
const PORT = 3000;
const server = app.listen(PORT);

const timeout = 50*1000; // example timeout of 50 seconds
server.setTimeout(timeout);