Coder Social home page Coder Social logo

Comments (7)

julien51 avatar julien51 commented on April 28, 2024

There's no need for a "subscription accepted" call for the subscriber for the exact same reason given in #27: the subscriber has the last word. If the subscriber accepts the verification of intent, the subscription should be considered successful (hence no need to inform him of the same thing twice).

Your second point may be valid though (I have to think more about it!). However, I think the subscriber should not consider the subscription successful until he's confirm the intent. So, if it gets a denial first, and then a verification of intent, the subscriber could/should(?) consider that his subscription has eventually been validated by the publisher.

from pubsubhubbub.

cweiske avatar cweiske commented on April 28, 2024

If the subscriber accepts the verification of intent, the subscription should be considered successful

This is only valid if there is no bug in the hub software :) The connection may drop, so that the hub does not receive the verification response from the subscriber. The proxy the subscriber is behind has a problem and fails to deliver the response... It's the internet.

from pubsubhubbub.

julien51 avatar julien51 commented on April 28, 2024

Well, yeah, but that's the spec :) This spec (like any other) is only intended to describe algorithm which are supposed to be implemented correctly.

from pubsubhubbub.

cweiske avatar cweiske commented on April 28, 2024

But the spec can make a technology susceptible against failures or not. In this case, the missing confirmation call adds a level of uncertainty.

from pubsubhubbub.

julien51 avatar julien51 commented on April 28, 2024

Sure... but I think that "bugs" in the hub can also happen if the hubs sends a extra "Acceptance of a subscription request".

from pubsubhubbub.

julien51 avatar julien51 commented on April 28, 2024

As for

The connection may drop, so that the hub does not receive the verification response from the subscriber. The proxy the subscriber is behind has a problem and fails to deliver the response... It's the internet.

If the hub does not get a 200 from the subscriber (+ echo of challenge), the hub will considered the subscription failed and the subscriber should also consider it not successful as long as it has not received a verification of intent to which it has responded 200 + echo-ed the challenge.

from pubsubhubbub.

cweiske avatar cweiske commented on April 28, 2024

Maybe the spec should have a sentence that a subscription has to be seen as "accepted" by the subscriber if the verification of intent has been answered successfully.

from pubsubhubbub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.