Comparing version 1.5.1 to 1.5.2
# CHANGELOG | ||
## v1.5.2 | ||
* Fix socket bind problem in combination with cluster.js for node verions > v0.10.x (Issue #33) | ||
* Have travis test more node versions | ||
## v1.5.1 | ||
@@ -4,0 +9,0 @@ |
15
index.js
@@ -12,2 +12,13 @@ var dgram = require('dgram'); | ||
var releaseTimeout | ||
// HACK: On Node v0.11.x and v0.12.x bind the socket to ensure that it works when clustering | ||
// This should be a temporary fix until node fixes the cluster module | ||
var socketBindRequired = (function(){ | ||
if(/^v0\.([0-9]|10)\..*$/.test(process.version)) { | ||
return false; | ||
} | ||
else { | ||
return true; | ||
} | ||
})(); | ||
var socketErrorHandler = function (err) { | ||
@@ -46,5 +57,3 @@ | ||
// HACK: On Node v0.11.x bind the socket to ensure that it works when clustering | ||
// THis should be a temporary fix until node fixes the cluster module | ||
if (/^v0\.11\..*$/.test(process.version)) { | ||
if (socketBindRequired && type == 'udp4') { | ||
socket.bind({ | ||
@@ -51,0 +60,0 @@ port: 0, |
{ | ||
"name": "ain2", | ||
"description": "Syslog logging for node.js. Continuation of ain", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"main": "./index", | ||
@@ -6,0 +6,0 @@ "author": "Alexander Dorofeev <aka.spin@gmail.com>", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35638
16
781