aheckmann / node-ses

An Amazon SES api for nodejs with proper error handling.
http://aheckmann.github.com/node-ses
MIT License
201 stars 37 forks source link

Add timeout to client.sendEmail #75

Closed shaynem closed 2 years ago

shaynem commented 2 years ago

The default nodejs request timeout is quite large (120000ms), adding option to specify your own timeout, alleviates waiting, when doing tests when simulating spotty network environments.

Feel free to adjust the default 300ms timeout.