Why is node.js only processing six requests at a time?

前端 未结 6 1788
长情又很酷
长情又很酷 2020-11-27 10:35

We have a node.js server which implements a REST API as a proxy to a central server which has a slightly different, and unfortunately asymmetric REST API.

Our client

6条回答
  •  自闭症患者
    2020-11-27 11:38

    It's the limit on number of concurrent connections in the browser:

    How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers?

    I have upvoted the other answers, as they helped me diagnose the problem. The clue was that node's socket limit was 5, and I was getting 6 at a time. 6 is the limit in Chrome, which is what I was using to test the server.

提交回复
热议问题