Comparing version 0.0.4 to 0.0.5
0.0.5 / 2013-04-18 | ||
================== | ||
* fixed header sent bug | ||
0.0.4 / 2013-04-18 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -54,3 +54,5 @@ /*! | ||
res.shouldKeepAlive = false; | ||
res.setHeader('Connection', 'close'); | ||
if (!res._header) { | ||
res.setHeader('Connection', 'close'); | ||
} | ||
}); | ||
@@ -88,3 +90,10 @@ } | ||
new Date(), process.pid, servers.length); | ||
} catch (er1) { | ||
// Usually, this error throw cause by the active connections after the first domain error, | ||
// oh well, not much we can do at this point. | ||
console.error('[%s] [worker:%s] Error on server close!\n%s', | ||
new Date(), process.pid, er1.stack); | ||
} | ||
try { | ||
// Let the master know we're dead. This will trigger a | ||
@@ -99,3 +108,3 @@ // 'disconnect' in the cluster master, and then it will fork | ||
// oh well, not much we can do at this point. | ||
console.error('[%s] [worker:%s] Error on server close or worker disconnect!\n%s', | ||
console.error('[%s] [worker:%s] Error on worker disconnect!\n%s', | ||
new Date(), process.pid, er2.stack); | ||
@@ -102,0 +111,0 @@ } |
{ | ||
"name": "graceful", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Graceful exit when `uncaughtException` emit, base on `process.on('uncaughtException')`.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
14699
247