Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

haraka-plugin-redis

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

haraka-plugin-redis - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

5

Changes.md
# 1.0.4 - 2017-02-06
- remove retry_strategy, redis client now does The Right Thing w/o it
# 1.0.3 - 2017-02-06
- don't break when no [redis] config exists

19

index.js

@@ -149,21 +149,2 @@ 'use strict';

if (!opts.retry_strategy) {
opts.retry_strategy = function (options) {
if (options.error.code === 'ECONNREFUSED') {
// End reconnecting on a specific error and flush all commands with a individual error
return new Error('The server refused the connection');
}
if (options.total_retry_time > 1000 * 60 * 60) {
// End reconnecting after a specific timeout and flush all commands with a individual error
return new Error('Retry time exhausted');
}
if (options.times_connected > 10) {
// End reconnecting with built in error
return undefined;
}
// reconnect after
return Math.min(options.attempt * 100, 3000);
};
}
var client = redis.createClient(opts)

@@ -170,0 +151,0 @@ .on('error', function (error) {

2

package.json
{
"name": "haraka-plugin-redis",
"version": "1.0.3",
"version": "1.0.4",
"description": "Redis plugin for Haraka & other plugins to inherit from",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc