Git Product home page Git Product logo

Comments (4)

josesamuel avatar josesamuel commented on August 10, 2024

Not sure what you mean, Remoter doesn't bind to service. that is done outside of remoter.

from remoter.

herriojr avatar herriojr commented on August 10, 2024

I'm looking at the kotlin implementation as I was evaluating whether I should use it. Unless I'm misreading it, in the ServiceConnector, upon an onServiceDisconnected, you explicitly clear the service binder, which when a call to getService() happens, will cause it to try to explicitly bind to the service again with the same ServiceConnection, however, the ServiceConnection was never removed (unbindService()). Ideally, upon onServiceDisconnected(), all clients should wait for the onServiceConnected() call to happen unless a call to onBindingDied() gets called, in which case, you need to unbind then bind again (however, IDK if you really want to in this case because it means the remote process is in a death spiral).

The reason for all this is that there is retry logic to bring up bound service in case of failure. For the most part, if the failures aren't happening one after the other, you should always get a call back on onServiceConnected at some point unless you get a call to onBindingDied. If you get a call to onBindingDied, it means that the process you are trying to communicate to is in a death spiral and it's probably best to provide some way to notify the user of this API that this is the case as what should happen next really depends on how they want to handle it.

from remoter.

josesamuel avatar josesamuel commented on August 10, 2024

Thanks for the info!. Will take care of it soon and will comment here once done

from remoter.

josesamuel avatar josesamuel commented on August 10, 2024

Fixed in version 2.0.3. Added more tests and sample to cover this

from remoter.

Related Issues (14)

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.