code: def deactivate(self, address):
          
          with self.lock:
              try:
                  connections = self.connections[address]
              except KeyError: # already removed from the connection pool
                  return
              for conn in list(connections):
                  if not conn.in_use:
                      connections.remove(conn)
                      try:
                          conn.close()
                      except IOError:
                          pass
              if not connections:
                  self.remove(address)
docs: Deactivate an address from the connection pool, if present, closing
          all idle connection to that address