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

graceful

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graceful - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

5

History.md
0.0.5 / 2013-04-18
==================
* fixed header sent bug
0.0.4 / 2013-04-18

@@ -3,0 +8,0 @@ ==================

13

lib/graceful.js

@@ -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 @@ }

2

package.json
{
"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",

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