How do you set maxSockets in Node.js when using Express?

前端 未结 2 2039
悲&欢浪女
悲&欢浪女 2021-02-02 12:27

Is there a way to modify the Node.js maxSockets setting when using the Express framework?

2条回答
  •  温柔的废话
    2021-02-02 12:54

    From version v0.12.0 maxSockets set to Infinity

    maxSockets are no longer limited to 5. The default is now set to Infinity with the developer and the operating system given control over how many simultaneous connections an application can keep open to a given host.

    Node v0.12.0 (Stable) release notes

提交回复
热议问题