http-mutunga
v2.0.0
Published
An http server that closes idle connections when closing
Downloads
13
Readme
http-mutunga
An http server that closes idle connections when closing
var mutunga = require('http-mutunga');
var express = require('express');
var app = express();
app.get('/', function (req, res) {
res.send('Ok');
});
var server = mutunga(app).listen(8080, function () {
process.on('SIGTERM', function () {
// this will properly close connections that are keep alive
server.close(function () {
process.exit(0);
});
});
});