code: def close(self):
          
          if not self.__closed:
              self.__closed = True
              self.pool.return_socket(self.sock)
              self.sock, self.pool = None, None
docs: Return this instance's socket to the connection pool.