Comments (8)
Set autoexpire
to 10 and try again. It's expected, as kcptun cannot detect network changing correctly.
from kcptun-android.
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.
One possible solution is send a signal to kcptun process, e.g SIGUSR1
when we detected a network change.
from kcptun-android.
kcptun does check for connection closes, e.g. here. Maybe we should investigate why that isn't working.
from kcptun-android.
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.
Okay. It turns out the problem was caused by bindSocket
. If we change it back to protect
, everything will be fine.
from kcptun-android.
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.
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)
- How-to fix error "Unknown plugin kcptun"
- You closed this issue without responding properly - kcptun settings don't work. HOT 3
- 未知插件 kuntun HOT 1
- 新版本kcp配置不成功 发现remoteaddr无法正确配置 HOT 3
- Issue with plugin when used Wi-Fi instead mobile connection HOT 3
- Worth to build a new kcptun-android HOT 3
- android P error
- Will not work with Q HOT 3
- Android 10 (MIUI11) look like can't ues HOT 9
- 升级新版本kcptun? Would you please upgrade kcptun? HOT 3
- background service start failed: libss-local exits too fast(exit code: 255) on android 10 HOT 3
- Pls update kcptun plugin,it can not work with kcptun 20191107 server HOT 2
- 是不是安装之后,什么东西都看不到的?在后台运行的吗? HOT 4
- TCP connection mimicking/emulating (for rooted devices only) HOT 1
- 你好,请问怎么内置到shadowsocks-android项目中而不是单独安装? HOT 2
- Would you please upgrade kcptun?
- Would you please upgrade kcptun to support multi-port dialer? HOT 10
- Install from Play store or pureapk is not support 64bit android system HOT 1
- 能否增加-l -r等配置参数?谢谢!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kcptun-android.