The next() call isn't related to the perfs... it's only to let the possibility to have another middleware to treat the request.
I do the same thing in my AJAX client library : anticore <https://www.npmjs.com/package/anticore> ;) Michaël Rouges - https://github.com/Lcfvs - @Lcfvs 2017-12-27 1:31 GMT+01:00 <[email protected]>: > In the middleware function, to move on to the succeeding middleware > function, we need to invoke the next function. As we all know, if we omit > the call the next() function, the request will be hanging. In these > scenarios, are there any performance implications due to this? If yes, then > what are those issues? What might be the issues if we do not explicitly > call next function and requests are left hanging? > > > Thank you. > > -- > 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/4215b2d6-4392-4f9e-9551-ea714659af6b%40googlegroups.com > <https://groups.google.com/d/msgid/nodejs/4215b2d6-4392-4f9e-9551-ea714659af6b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAMNVKQF8HHrx6P%2B6T4uVsfLU%2BcOL%3D%3DiQKi6bN%3Dcmj_f7nvYxWA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
