http-mutunga

2.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i http-mutunga

Weekly Downloads

6

Version

2.0.0

License

MIT

Unpacked Size

3.65 kB

Total Files

4

Last publish

Collaborators

  • ascendzor
  • tcoats