Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

udp2raw 的自动重连无法保护tinyvpn #83

Open
atxiu opened this issue Apr 24, 2019 · 1 comment
Open

udp2raw 的自动重连无法保护tinyvpn #83

atxiu opened this issue Apr 24, 2019 · 1 comment

Comments

@atxiu
Copy link

atxiu commented Apr 24, 2019

已查看
https://github.com/wangyu-/UDPspeeder/wiki/发Issue前请看
(否则Issue可能被忽略,或被直接关掉)

在 tinyvpn client -> udp2raw client -> udp2raw server -> tinyvpn server 场景下
故意重启或者停止再开启 tinyvpn server , 会导致 tinyvpn client 服务挂掉

tinyvpn_amd64[3472]: [2019-04-25 03:39:26][INFO]jitter_min=0 jitter_max=0 output_interval_min=0 output_interval_max=0 fec_ti...ec_mode=0
tinyvpn_amd64[3472]: [2019-04-25 03:39:26][INFO]fec_str=2:4
tinyvpn_amd64[3472]: [2019-04-25 03:39:26][INFO]fec_inner_parameter=1:4,2:4
tinyvpn_amd64[3472]: [2019-04-25 03:39:26][INFO]using interface tun643
tinyvpn_amd64[3472]: [2019-04-25 03:39:55][INFO]connection accepted by server
tinyvpn_amd64[3472]: [2019-04-25 03:41:25][FATAL]server restarted or switched to handle another client,exited. maybe you nee...reconnect

目前暂时用 systemctlRestart=always 参数解决。
能否在 tinyvpn client 端加上断线重连机制, udp2raw 是可以自动重连, 但无法带动 tinyvpn 重连。

@CensorKo
Copy link

CensorKo commented Jul 5, 2022

tinyvpn自带的重连很慢,需要5分钟左右,如果只是单纯的想重启tinyvpn不如强杀来的快,只需1s

#!/bin/sh
while true
do
./tinyvpn ....
sleep 1
done

kill -9 $(ps -ef|grep -v grep|grep "./bin/tinyvpn -c -r 127.0.0.1:xxx"|awk '$3 != 1'|awk '{print $2}')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants