boto
boto copied to clipboard
When does the connection be closed?
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?
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.