At the moment we have a problem ...
Node.js script, starts the server and waits for clients, parsit several sites at once (from 4) and returns sorted results to the client's request ...
With a load of 50 conversions per second, after 5-10 seconds after starting, all external connections to the sites that need to be parsed start to hang, connections are broken on timeout (we get Error: socket hang up), but this does not give anything any new ones also hang. ..
Tried to run on different servers in different ds, the problem is in the script itself ...
FreeBSD: 9.2 Node.js: 0.10.22
Test script - https://www.alphabid.com/parser2.js
async!=fork
? in the sense that var _async = require ('async'); function a (cb) {var c = 0; for (var i = 0; i <100000000; i ++) {c = i * 2; } console.log ("A end"); cb (null, c); } function b (cb) {console.log ("B end"); cb (null, "BBB"); } _async.parallel ([a, b], function (err, results) {console.log (err, results);}); will output: A end B end null [199999998, 'BBB'] - zb '