node-ses icon indicating copy to clipboard operation
node-ses copied to clipboard

Add request timeout option

Open shaynem opened this issue 4 years ago • 1 comments

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.

Added functionality + adjusted README.md to include new timeout option.

shaynem avatar Jul 25 '21 06:07 shaynem

Adding the timeout option is OK, but please rebase to clean up the commits. There's no need to have commit to add a hardcoded option, only to follow-up and make it dynamic. The first three commits can be squashed into one. See my comment about the fourth commit.

markstos avatar Jul 27 '21 17:07 markstos