Skip to content

Commit

Permalink
Merge pull request #1337 from tulios/enable-request-timeouts-by-default
Browse files Browse the repository at this point in the history
Enforce request timeout by default
  • Loading branch information
Nevon authored May 2, 2022
2 parents dd6ce4d + 55c62a7 commit f3d6728
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = class Client {
authenticationTimeout,
reauthenticationThreshold,
requestTimeout,
enforceRequestTimeout = false,
enforceRequestTimeout = true,
retry,
socketFactory = defaultSocketFactory(),
logLevel = INFO,
Expand Down
2 changes: 1 addition & 1 deletion src/network/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = class Connection {
sasl = null,
clientId = 'kafkajs',
connectionTimeout,
enforceRequestTimeout = false,
enforceRequestTimeout = true,
maxInFlightRequests = null,
instrumentationEmitter = null,
}) {
Expand Down

0 comments on commit f3d6728

Please sign in to comment.