All streams
Search
Write a publication
Pull to refresh
0
0
Send message
Похоже на завуалированную попытку создать конкурента jQuery :)
Относительно второго случая:

By default, the HTTP Agent will only open 5 simultaneous connections to a single host. You can change this easily: (assuming you've required the HTTP module as http)

http.globalAgent.maxSockets = 20; // or whatever

источник: stackoverflow.com/questions/12060869/why-is-node-js-only-processing-six-requests-at-a-time

Для выполнения keep-alive запросов попробуйте эту информацию:

stackoverflow.com/questions/7339640/with-node-js-http-how-does-res-end-guarantee-a-disconnection-of-the-socket

Может быть эта статья тоже будет полезна: stackoverflow.com/questions/6337328/node-js-https-request-with-keep-alive-header
После того, как вы получаете статус 200, процесс node.js завершается, следовательно закрывается ваш сокет.

Information

Rating
Does not participate
Registered
Activity