docs: def handle(self, conn):
          """Handle connection from GPG binary using the ASSUAN protocol."""
          keyring.sendline(conn, b'OK')
          for line in keyring.iterlines(conn):
              parts = line.split(b' ')
              command = parts[0]
              args = tuple(parts[1:])
  
              if command == b'BYE':
                  return
              elif command == b'KILLAGENT':
                  keyring.sendline(conn, b'OK')
                  raise AgentStop()
  
              if command not in self.handlers:
                  log.error('unknown request: %r', line)
                  continue
  
              handler = self.handlers[command]
              if handler:
                  try:
                      handler(conn, args)
                  except AgentError as e:
                      msg, = e.args
                      keyring.sendline(conn, msg)
                      continue
              keyring.sendline(conn, b'OK')