Skip to content

Commit

Permalink
Modify EventEmitter to increase the number of max listeners
Browse files Browse the repository at this point in the history
Modify EventEmitter to increase the number of max listeners.
  • Loading branch information
arciisine authored Apr 15, 2023
1 parent 893b2b1 commit 9012ddc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/connection/UndiciConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default class Connection extends BaseConnection {
}

this[kEmitter] = new EventEmitter()
this[kEmitter].setMaxListeners(100);
const undiciOptions: Pool.Options = {
keepAliveTimeout: 600e3,
keepAliveMaxTimeout: 600e3,
Expand Down

0 comments on commit 9012ddc

Please sign in to comment.