From f52a29e24c9d172256c6dd3e97e9069b060cf9fa Mon Sep 17 00:00:00 2001 From: Rob Gulewich Date: Mon, 25 Feb 2013 21:11:52 -0800 Subject: [PATCH] GH-118: "failed to instantiate provider" warnings in console on SmartOS --- lib/client/pool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client/pool.js b/lib/client/pool.js index 3866473..e6e947c 100644 --- a/lib/client/pool.js +++ b/lib/client/pool.js @@ -37,7 +37,7 @@ function createPool(options) { return pooling.createPool({ checkInterval: options.checkInterval, log: options.log, - name: 'ldapjs_' + (options.url || options.socketPath), + name: 'ldapjs_' + (options.url || options.socketPath).replace(/[:/]/g, '_'), max: options.maxConnections, maxIdleTime: options.maxIdleTime,