code: def reset(self, context):
          
          LOG.debug('%r.reset(%r)', self, context)
          self._lock.acquire()
          try:
              self._shutdown_unlocked(context)
          finally:
              self._lock.release()
docs: Return a reference, forcing close and discard of the underlying
          connection. Used for 'meta: reset_connection' or when some other error
          is detected.