go-gost / gost

GO Simple Tunnel - a simple tunnel written in golang
https://gost.run
MIT License
4.38k stars 528 forks source link

socks5中转经常会失效,请问有重试机制吗 #552

Closed naicha520 closed 3 months ago

naicha520 commented 3 months ago

image

在实际生产当中,socks5链接经常偶尔失败,并发、阻塞、网卡等原因,请问gost有重试机制吗,如果某条请求转发异常了,可以配置重试次数吗,比如直到成功为止,或者转发失败后的处理

ginuerzh commented 3 months ago

可以使用retriesdialTimeout重试。

gost -L ":8080?retries=3&dialTimeout=10s"
Naruse-developer commented 1 month ago

socks5 udp 怎么开启啊? 下列是配置文件

services:
- name: service-sosks5
  addr: :8888
  handler:
    type: socks5
    auth:
      username: 123456
      password: 123456
    metadata:
      udp: true
      udpBufferSize: 4096
      notls: true
  listener:
    type: tcp