Skip to content

Commit 7c51ec2

Browse files
kuhetrivikr
andauthored
docs: wording
Co-authored-by: Trivikram Kamat <[email protected]>
1 parent 88f6760 commit 7c51ec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supplemental-docs/EFFECTIVE_PRACTICES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ console.log(getObjectResponse.$metadata.httpStatusCode);
197197
// ⚠️ byte stream is unhandled, leaving a socket in use.
198198
```
199199

200-
the request is incomplete. The connection will remain open until the byte stream, or payload, is read or discarded.
200+
Although the API call is performed and you have access to response, the connection will remain open until the byte stream, or payload, is read or discarded.
201201
Not doing so will leave the connection open, and in Node.js this can lead to a condition we call socket exhaustion. In
202202
the worst cases this can cause your application to slow, leak memory, and/or deadlock.
203203

0 commit comments

Comments
 (0)