DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Node.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Node.js
What's the recommended fix for code that accidentally attaches a new listener on every incoming request?
A
Raise setMaxListeners() to a very high number and ignore it
B
Attach the listener once, outside the request handler, at setup time
C
Switch to a completely different pattern with no events at all
D
Restart the server periodically to clear listeners
Check Answer