GithubHelp home page GithubHelp logo

Comments (8)

madeye avatar madeye commented on August 28, 2024

Set autoexpire to 10 and try again. It's expected, as kcptun cannot detect network changing correctly.

from kcptun-android.

Mygod avatar Mygod commented on August 28, 2024

Hmm yeah I guess I forgot to merge that change. I noticed that autoexpire was set to 60 though.

Is there a less hacky way to do this? I feel like the system should notify the clients when a UDP connection is shut down.

from kcptun-android.

madeye avatar madeye commented on August 28, 2024

One possible solution is send a signal to kcptun process, e.g SIGUSR1 when we detected a network change.

from kcptun-android.

Mygod avatar Mygod commented on August 28, 2024

kcptun does check for connection closes, e.g. here. Maybe we should investigate why that isn't working.

from kcptun-android.

Mygod avatar Mygod commented on August 28, 2024

Upon further inspection, this issue seems to only occur in VPN mode. Proxy only mode does not have the same issue. Maybe another Dial call we missed perhaps?

Never mind. It seems like proxy mode also has this problem.

from kcptun-android.

Mygod avatar Mygod commented on August 28, 2024

Okay. It turns out the problem was caused by bindSocket. If we change it back to protect, everything will be fine.

from kcptun-android.

Mygod avatar Mygod commented on August 28, 2024

Okay after a lot of digging around, I might have to agree with you about sending a signal. I also created an issue at upstream since they also have similar issue there: xtaci/kcptun#642 But at this point, we might as well just use QUIC, where there is connection migration, honestly. So let's just say autoexpire is good enough for now.

Also I'm seeing SetDSCP: invalid connection on this build. Thoughts?

from kcptun-android.

madeye avatar madeye commented on August 28, 2024

I saw SetDSCP: invalid connection as well. Not sure if it's an Android specific issue that we cannot set DSCP on that socket.

But it'd not be a problem, since most of NAT devices would just ignore and drop DSCP.

from kcptun-android.

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.