Skip to content

Commit 47c81d8

Browse files
committed
chore: updating per comments
1 parent 1de8cba commit 47c81d8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/cmap/connect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ function makeConnection(options: MakeConnectionOptions, _callback: Callback<Stre
335335
// Default to delay to 300 seconds. Node automatically then sets TCP_KEEPINTVL to 1 second
336336
// which is acceptable to the recommendation of 10 seconds and also cannot be configured.
337337
// TCP_KEEPCNT is also set to 10 in Node and cannot be configured. (Recommendation is 9)
338-
const keepAliveInitialDelay = options.keepAliveInitialDelay || 300000;
338+
const keepAliveInitialDelay = options.keepAliveInitialDelay;
339339
const existingSocket = options.existingSocket;
340340

341341
let socket: Stream;

src/connection_string.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -864,15 +864,15 @@ export const OPTIONS = {
864864
return wc;
865865
}
866866
},
867-
/** @deprecated - Will not be able to turn off in the future. */
868867
keepAlive: {
869868
default: true,
870-
type: 'boolean'
869+
type: 'boolean',
870+
deprecated: 'Will not be able to turn off in the future.'
871871
},
872-
/** @deprecated - Will not be configurable in the future. */
873872
keepAliveInitialDelay: {
874873
default: 300000,
875-
type: 'uint'
874+
type: 'uint',
875+
deprecated: 'Will not be configurable in the future.'
876876
},
877877
loadBalanced: {
878878
default: false,

0 commit comments

Comments
 (0)