boto icon indicating copy to clipboard operation
boto copied to clipboard

When does the connection be closed?

Open duyanghao opened this issue 9 years ago • 1 comments
trafficstars

boto version 2.34.0. in the file boto/connection.py:

def clean(self):
        """
        Get rid of stale connections.
        """
        # Note that we do not close the connection here -- somebody
        # may still be reading from it.
        while len(self.queue) > 0 and self._pair_stale(self.queue[0]):
            self.queue.pop(0)

i can't find any code for closing the connection. when does the connection be closed?

duyanghao avatar Aug 10 '16 12:08 duyanghao

may related to #3566

seems there is no way to close the connection now. after clean() the real connection should be closed after gc reclaim that connection object.

jeffrey4l avatar Jun 02 '20 06:06 jeffrey4l