Skip to content

Commit 065b214

Browse files
nbbeekenW-A-James
authored andcommitted
feat(NODE-6313): add CSOT support to sessions and transactions (#4199)
1 parent 867d35e commit 065b214

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cmap/wire_protocol/on_data.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,11 @@ export function onData(
9090
// Adding event handlers
9191
emitter.on('data', eventHandler);
9292
emitter.on('error', errorHandler);
93+
94+
const timeoutForSocketRead = timeoutContext?.timeoutForSocketRead;
95+
timeoutForSocketRead?.throwIfExpired();
9396
// eslint-disable-next-line github/no-then
94-
timeoutContext?.timeoutForSocketRead?.then(undefined, errorHandler);
97+
timeoutForSocketRead?.then(undefined, errorHandler);
9598

9699
const timeoutForSocketRead = timeoutContext?.timeoutForSocketRead;
97100
timeoutForSocketRead?.throwIfExpired();

0 commit comments

Comments
 (0)