Giter VIP home page Giter VIP logo

Comments (5)

rfk avatar rfk commented on September 22, 2024

+1; I wonder if it would be more useful to frame it as "channels expire after X minutes of inactivity" rather than have it specifically be about waiting for the second device to connect, as this will help guard against flows that get abandoned part-way through

from channelserver.

jrconlin avatar jrconlin commented on September 22, 2024

I think the server already does this: https://github.com/mozilla-services/channelserver/blob/master/channelserver/src/server.rs#L129

I'd prefer if the timeout was actually a lot less than 15 minutes, to be honest. Heck, might even want to display a countdown timer.

One thing I'd very much like to avoid is the channelserver retaining knowledge of recently expired channels. Currently, if a channel is connected and there's no counterpart, there's simply no communications performed. For the initiating channel request, that should be preferred, for the connecting request, not getting a response back should fail pretty fast.

from channelserver.

shane-tomlinson avatar shane-tomlinson commented on September 22, 2024

if party.started.elapsed() <--- this line is a winner

"channels expire after X minutes of inactivity

I think it's reasonable to frame this way.

from channelserver.

rfk avatar rfk commented on September 22, 2024

@jrconlin the PR wasn't linked here, but I think this was fixed right?

from channelserver.

jrconlin avatar jrconlin commented on September 22, 2024

Yes, it was closed as part of #31. My apologies for missing it in the commit message.

from channelserver.

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.