Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

When does the connection be closed? #3587

Open
duyanghao opened this issue Aug 10, 2016 · 1 comment
Open

When does the connection be closed? #3587

duyanghao opened this issue Aug 10, 2016 · 1 comment

Comments

@duyanghao
Copy link

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?

@jeffrey4l
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants