Git Product home page Git Product logo

Comments (7)

andris9 avatar andris9 commented on May 22, 2024

Should be fixed with 1034ae8 - if the server supported only HELO but not EHLO then all commands were sent twice.

from nodemailer.

OrangeDog avatar OrangeDog commented on May 22, 2024

You are the fastest bug-fixer ever :)

from nodemailer.

andris9 avatar andris9 commented on May 22, 2024

Thanks :)

from nodemailer.

OrangeDog avatar OrangeDog commented on May 22, 2024

Would this also have caused the callback to return twice, i.e. is the callback only supposed to return once?

from nodemailer.

andris9 avatar andris9 commented on May 22, 2024

If the response for an EHLO command was erroneos (server didn't support it) then an additional HELO request was made. As there was a bug then the original "thread" (the EHLO one) didn't stop there and tried to continue anyway regardless of the error. Meanwhile HELO ended with success and started it's own separate command "thread" (actually it's not a thread but a callback chain or smth.), so as a consequence a set of two "threads" were sending matching commands to the same connection and thus fireing the callback function also not once but twice (one from the EHLO and one from the HELO thread).

In short - welcome to the wonderful world of callbacks and events :)

from nodemailer.

OrangeDog avatar OrangeDog commented on May 22, 2024

I've been in this world for a while.

from nodemailer.

bvirlet avatar bvirlet commented on May 22, 2024

I'm encountering this issue. While trying to debug it I noticed that this merge seems to have removed the fix:
andris9@76ec625

from nodemailer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.