2.0.0 • Published 4 years ago

http-mutunga v2.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

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);
    });
  });
});
2.0.0

4 years ago

1.0.0

8 years ago