Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • N node-http-proxy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 482
    • Issues 482
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 102
    • Merge requests 102
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • http ... PARTY!
  • node-http-proxy
  • Merge requests
  • !400

setMaxListeners(0) on reverseProxy to squelch warnings

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/rstudio/master into master Apr 03, 2013
  • Overview 4
  • Commits 13
  • Pipelines 0
  • Changes 7

Created by: jcheng5

reverseProxy can have many subscribers to the 'drain' event when large uploads occur. Without this fix I get the following warning printed in the log:

(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at ClientRequest.EventEmitter.addListener (events.js:160:15)
    at ClientRequest.EventEmitter.once (events.js:179:8)
    at IncomingMessage.<anonymous> (/Users/jcheng/shiny-server-2/node_modules/http-proxy/lib/node-http-proxy/http-proxy.js:390:22)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at Object.resume (/Users/jcheng/shiny-server-2/node_modules/http-proxy/lib/node-http-proxy.js:253:18)
    at HttpProxy.proxyRequest (/Users/jcheng/shiny-server-2/node_modules/http-proxy/lib/node-http-proxy/http-proxy.js:428:16)
    at /Users/jcheng/shiny-server-2/lib/proxy/http.js:142:31
    at _fulfilled (/Users/jcheng/shiny-server-2/node_modules/q/q.js:830:54)
    at resolvedValue.promiseSend.done (/Users/jcheng/shiny-server-2/node_modules/q/q.js:860:30)
    at makePromise.promise.promiseSend (/Users/jcheng/shiny-server-2/node_modules/q/q.js:487:13)
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/rstudio/master