Spacc BBS Spacc BBS
    • Categorie
    • Recenti
    • Tag
    • Popolare
    • Mondo
    • Utenti
    • Gruppi
    • Registrati
    • Accedi
    La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.

    I had a dumb thing in my #ActivityPub implementation.

    Pianificato Fissato Bloccato Spostato Uncategorized
    activitypub
    2 Post 2 Autori 1 Visualizzazioni
    Caricamento altri post
    • Da Vecchi a Nuovi
    • Da Nuovi a Vecchi
    • Più Voti
    Rispondi
    • Topic risposta
    Effettua l'accesso per rispondere
    Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
    • squinky@teh.entar.netS Questo utente è esterno a questo forum
      squinky@teh.entar.net
      ultima modifica di

      I had a dumb thing in my #ActivityPub implementation.

      I was getting these broadcast Delete announcements tied to Person objects from servers out in the wild, and was dutifully trying to validate their signatures. I didn't have the key here, and they're signed by the deleted Person, so loading the key gave a 404.

      So the next thing it tried to do was see if loading the Person remotely gave a 404, and if so, it's a legitimate Delete, problem solved.

      But what I think was happening was that the attempt to load the Key, then the attempt to load the Person, both flagged the remote server "hey this guy doesn't know about the Delete", and it received another copy of the Delete action. It's possible each Delete caused two copies of itself to get re-queued. Holy forkbomb.

      So I stuck a little bit at the top of Delete validation that checks to see if I have the target object, and chucks the message in the bin if not. This was in my original implementation but got lost when I did some refactoring.

      It sat for an hour, just processing THOUSANDS of backed up Delete messages.

      julian@community.nodebb.orgJ 1 Risposta Ultima Risposta Rispondi Cita 0
      • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
        julian@community.nodebb.org @squinky@teh.entar.net
        ultima modifica di

        squinky@teh.entar.net oh god that sounds nuts... also a weird sort of thing for the other server to do isn't it. Seems like just sending the message once would be enough!

        1 Risposta Ultima Risposta Rispondi Cita 0
        • Primo post
          Ultimo post