Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaxListenersExceededWarning when sending parallel requests through ClientProxy #9295

Closed
3 of 15 tasks
notVitaliy opened this issue Mar 5, 2022 · 1 comment
Closed
3 of 15 tasks
Labels
needs triage This issue has not been looked into

Comments

@notVitaliy
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When sending more than 10 parallel requests through ClientProxy, a warning comes up in the console:

MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 message listeners added to [Socket]. Use emitter.setMaxListeners() to increase limit

Minimum reproduction code

https://github.com/notVitaliy/nestjs-error

Steps to reproduce

  1. yarn
  2. nest start app
  3. nest start tasks

Expected behavior

For the warning to not be there.

Package

  • I don't know. Or some 3rd-party package
  • @nestjs/common
  • @nestjs/core
  • @nestjs/microservices
  • @nestjs/platform-express
  • @nestjs/platform-fastify
  • @nestjs/platform-socket.io
  • @nestjs/platform-ws
  • @nestjs/testing
  • @nestjs/websockets
  • Other (see below)

Other package

No response

NestJS version

8.4.0

Packages versions

[System Information]
OS Version : Linux 5.4
NodeJS Version : v16.13.2
YARN Version : 1.22.17

[Nest CLI]
Nest CLI Version : 8.2.2

[Nest Platform Information]
platform-express version : 8.4.0
microservices version : 8.4.0
schematics version : 8.0.7
schedule version : 1.0.2
testing version : 8.4.0
common version : 8.4.0
core version : 8.4.0
cli version : 8.2.2

Node.js version

16.13.2

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@notVitaliy notVitaliy added the needs triage This issue has not been looked into label Mar 5, 2022
@kamilmysliwiec
Copy link
Member

Let's track this here #9303

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue has not been looked into
Projects
None yet
Development

No branches or pull requests

2 participants