yes i need them to stay keepalive state, my objective is to create 100 http conectins if no error is given + 100 till i can check a max of nat ports in a router
Quarta-feira, 21 de Maio de 2014 19:39:39 UTC+1, Aria Stewart escreveu: > > > On May 21, 02014, at 12:06, Nuno Barros <[email protected] <javascript:>> > wrote: > > > hello, I'am in a project where i need to establish the most possible > http connections and keep them open, using node.js but I'm not sure how I > could do it. if anyone can put me in the right way it would be great. > > > > thanks in advance > > In node 0.10, disable the http agent; in node 0.11+, that shouldn’t be > needed. (Someone correct me if I’m wrong there!) > > Then: use the http library and start a bunch of connections. If you start > sending and don’t end, they’ll stay open. > > Do you need them to stay open in inter-request keepalive state, or just > occupy sockets? > > Aria > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/f2e95641-4560-461b-a569-9a829099f24e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
