Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An http server that closes idle connections when closing

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages