File tree 2 files changed +0
-21
lines changed
2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ Repository | Reference | Recent Version
55
55
[ request] [ requestGHUrl ] | [ Documentation] [ requestDOCUrl ] | [ ![ NPM version] [ requestNPMVersionImage ]] [ requestNPMUrl ]
56
56
[ sanitize-html] [ sanitize-htmlGHUrl ] | [ Documentation] [ sanitize-htmlDOCUrl ] | [ ![ NPM version] [ sanitize-htmlNPMVersionImage ]] [ sanitize-htmlNPMUrl ]
57
57
[ select2] [ select2GHUrl ] | [ Documentation] [ select2DOCUrl ] | [ ![ NPM version] [ select2NPMVersionImage ]] [ select2NPMUrl ]
58
- [ toobusy-js] [ toobusy-jsGHUrl ] | [ Documentation] [ toobusy-jsDOCUrl ] | [ ![ NPM version] [ toobusy-jsNPMVersionImage ]] [ toobusy-jsNPMUrl ]
59
58
[ underscore] [ underscoreGHUrl ] | [ Documentation] [ underscoreDOCUrl ] | [ ![ NPM version] [ underscoreNPMVersionImage ]] [ underscoreNPMUrl ]
60
59
61
60
@@ -240,11 +239,6 @@ Repository | Reference | Recent Version | Referenced
240
239
[ sanitize-htmlNPMUrl ] : https://npmjs.org/package/sanitize-html
241
240
[ sanitize-htmlNPMVersionImage ] : https://img.shields.io/npm/v/sanitize-html.svg?style=flat
242
241
243
- [ toobusy-jsGHUrl ] : https://github.com/STRML/node-toobusy
244
- [ toobusy-jsDOCUrl ] : https://github.com/STRML/node-toobusy/blob/master/README.md
245
- [ toobusy-jsNPMUrl ] : https://npmjs.org/package/toobusy-js
246
- [ toobusy-jsNPMVersionImage ] : https://img.shields.io/npm/v/toobusy-js.svg?style=flat
247
-
248
242
[ underscoreGHUrl ] : https://github.com/jashkenas/underscore
249
243
[ underscoreDOCUrl ] : http://underscorejs.org/
250
244
[ underscoreNPMUrl ] : https://npmjs.org/package/underscore
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var toobusy = require ( 'toobusy-js' ) ;
4
3
var express = require ( 'express' ) ;
5
4
var minify = require ( 'express-minify' ) ;
6
5
var MongoStore = require ( 'connect-mongo' ) ( express ) ;
@@ -30,20 +29,6 @@ db.once('open', function () {
30
29
31
30
var sessionStore = new MongoStore ( { mongoose_connection : db } ) ;
32
31
33
- // See https://hacks.mozilla.org/2013/01/building-a-node-js-server-that-wont-melt-a-node-js-holiday-season-part-5/
34
- app . use ( function ( aReq , aRes , aNext ) {
35
- // check if we're toobusy
36
- toobusy . maxLag ( 100 ) ;
37
- if ( toobusy ( ) ) {
38
- statusCodePage ( aReq , aRes , aNext , {
39
- statusCode : 503 ,
40
- statusMessage : 'We\'re busy right now. Try again later.' ,
41
- } ) ;
42
- } else {
43
- aNext ( ) ;
44
- }
45
- } ) ;
46
-
47
32
// Force HTTPS
48
33
if ( app . get ( 'port' ) === 443 ) {
49
34
app . use ( function ( aReq , aRes , aNext ) {
You can’t perform that action at this time.
0 commit comments