表示服务器5 POST后无响应

我正在使用快递服务单个页面的Web应用程序,并作为所述应用程序的REST端点。 一切工作正常的静态页面服务,但5后,服务器变得无法响应。 我已经看到了很多其他post,但是他们都说只要确保在每个调用的地方调用res.send()或res.end(),而不pipe逻辑如何分支。 app.js代码如下。

/** * Module dependencies. */ var express = require('express'), http = require('http'), path = require('path'); var app = express(); var auth = require("./controllers/authentication.js"); http.globalAgent.maxSockets = 100; app.configure(function(){ app.set('port', process.env.PORT || 3000); app.use(express.logger('dev')); app.use(express.bodyParser()); app.use(app.router); }); app.configure('development', function(){ app.use(express.errorHandler()); }); app.get('/', function(req, res) { res.sendfile('./public/index.html'); }); app.get('/public/*', function(req, res) { res.sendfile('.'+req.url); }); app.post('/auth/login', function(req, res, next) { auth.login(req, res, next); }); app.post('/auth/logout', function(req, res, next) { auth.logout(req, res, next); }); app.post('/auth/verify', function(req, res, next) { auth.verify(req, res, next, function(req, res, next) { res.conentType = 'json'; res.send(200, "authorized"); }); }); http.createServer(app).listen(app.get('port'), function(){ console.log("Express server listening on port " + app.get('port')); }); 

这里是我得到的命令行输出(我尝试发出其他请求后,但服务器不会处理它们)。 我假设我不知道怎样正确地终止连接,但不知道如何。

在这里输入图像描述

问题涉及到不closuresmysql连接池