Skip to content

Commit af09285

Browse files
CLDSRV-720: Fix socket reused when counting bytes
1 parent 0988bb0 commit af09285

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/functional/aws-node-sdk/test/object/100-continue.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ class ContinueRequestHandler {
3535

3636
getRequestOptions() {
3737
return {
38+
// Prevent socket reuse as a test checks for socket.bytesWritten
39+
agent: new http.Agent({ keepAlive: false }),
3840
path: this.path,
3941
hostname,
4042
port,

0 commit comments

Comments
 (0)