Nodejs + Express Dropping Requests

时间:2015-06-05 18:19:23

标签: node.js express nginx

我的快递应用程序间歇性地删除了一些请求。我已将其调试到我在路由器完成处理之前看到服务器套接字关闭的程度。这是一个日志片段。

  [ 'Host',
     '<redacted>',
     'Host',
     '<redacted>',
     'X-Real-IP',
     '122.171.219.142',
     'X-Forwarded-For',
     '122.171.219.142',
     'X-Forwarded-server',
     '<redacted>',
     'X-Forwarded-uri',
     '/files/upload/progress?id=8dd96bd094914981951c28855962f38e&_=1433503852576',
     'X-Forwarded-Proto',
     'https',
     'Connection',
     'upgrade',
     'accept',
     'application/json, text/javascript, */*; q=0.01',
     'accept-encoding',
     'gzip, deflate, sdch',
     'accept-language',
     'en-US,en;q=0.8',
     'cookie',
     '<redacted>',
     'referer',
     'https://<redacted>/files/upload',
     'user-agent',
     'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36',
     'x-requested-with',
     'XMLHttpRequest' ],
  url: '/files/upload/progress?id=8dd96bd094914981951c28855962f38e&_=1433503852576',
  method: 1,
  versionMajor: 1,
  versionMinor: 1,
  shouldKeepAlive: true,
  upgrade: false }
Fri, 05 Jun 2015 11:30:50 GMT express:router dispatching GET /files/upload/progress?id=8dd96bd094914981951c28855962f38e&_=1433503852576
Fri, 05 Jun 2015 11:30:50 GMT express:router query  : /files/upload/progress?id=8dd96bd094914981951c28855962f38e&_=1433503852576
Fri, 05 Jun 2015 11:30:50 GMT express:router expressInit  : /files/upload/progress?id=8dd96bd094914981951c28855962f38e&_=1433503852576
Fri, 05 Jun 2015 11:30:50 GMT express:router jsonParser  : /files/upload/progress?id=8dd96bd094914981951c28855962f38e&_=1433503852576
Fri, 05 Jun 2015 11:30:50 GMT express:router urlencodedParser  : /files/upload/progress?id=8dd96bd094914981951c28855962f38e&_=1433503852576
Fri, 05 Jun 2015 11:30:50 GMT express:router <anonymous>  : /files/upload/progress?id=8dd96bd094914981951c28855962f38e&_=1433503852576
Fri, 05 Jun 2015 11:30:50 GMT express:router <anonymous>  : /files/upload/progress?id=8dd96bd094914981951c28855962f38e&_=1433503852576
Fri, 05 Jun 2015 11:30:50 GMT express:router <anonymous>  : /files/upload/progress?id=8dd96bd094914981951c28855962f38e&_=1433503852576
Fri, 05 Jun 2015 11:30:50 GMT express:router cookieParser  : /files/upload/progress?id=8dd96bd094914981951c28855962f38e&_=1433503852576
Fri, 05 Jun 2015 11:30:50 GMT express:router <anonymous>  : /files/upload/progress?id=8dd96bd094914981951c28855962f38e&_=1433503852576
HTTP 1735: server socket close
Fri, 05 Jun 2015 11:30:50 GMT express:router <anonymous>  : /files/upload/progress?id=8dd96bd094914981951c28855962f38e&_=1433503852576
Fri, 05 Jun 2015 11:30:50 GMT express:router <anonymous>  : /files/upload/progress?id=8dd96bd094914981951c28855962f38e&_=1433503852576
HTTP 1735: write ret = false
HTTP 1735: write ret = false
HTTP 1735: outgoing message end.

我收到502响应,Nginx错误日志显示上游过早关闭的连接。在所有其他成功请求中,write ret发生在server socket close之前,并且在所有路由器日志之后都发生

节点版本为0.12.4 快递版本是4.12.4

使用NODE_DEBUG = http DEBUG = express:*

生成此日志

有关如何继续调试的任何指示都将受到高度赞赏!

0 个答案:

没有答案