Prevent timeout in express

85 views
Skip to first unread message

Mustafa Yousef

unread,
May 10, 2016, 9:24:37 AM5/10/16
to nodejs
Hi,

I just wrote a small application to send automatic mails from express with a module called nodemailer.
It's a simple HTML form where you can fill some data up and hit the "send" button.
This data will be pasted then in the mail content and sent over an Exchange Server.

When I send a mail everything works fine. I receive this mail. 

The problem is that the connection then will timeout. 
I get the following message:

SERVER 1:


└──451 4.7.0 Timeout waiting for client input


Closing connection to the server


events.js:141


      throw er; // Unhandled 'error' event


      ^




Error: read ECONNRESET


    at exports._errnoException (util.js:870:11)


    at TLSWrap.onread (net.js:552:26)


How can I prevent the server from timing out the connection?

Thanks :)

Reply all
Reply to author
Forward
0 new messages