Should we close botocore's StreamingBody?

Viewed 325

The close() method of StreamingBody is clearly documented. However, it is unclear whether we should proactively close it after use.

As of the few examples I have seen, the close() method is never explicitly called.

My concern/question is, if we don't explicitly close it, wouldn't there be the risk of leaking connections.

0 Answers
Related