tinyfecVPN icon indicating copy to clipboard operation
tinyfecVPN copied to clipboard

udp2raw 的自动重连无法保护tinyvpn

Open atxiu opened this issue 6 years ago • 2 comments

已查看 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 重连。

atxiu avatar Apr 24 '19 20:04 atxiu

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}')

CensorKo avatar Jul 05 '22 05:07 CensorKo