go-gost / gost

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

Allow configuring handler/dialer timeout #229

Open L2501 opened 1 year ago

L2501 commented 1 year ago

The default timeout of 10 seconds is too short for many cases

ginuerzh commented 3 days ago

A new dialTimeout option has been added to the service to set the timeout in the latest version:

gost -L :16666?dialTimeout=10s

or

services:
- name: service-0
  addr: ":16666"
  handler:
    type: http
  listener:
    type: tcp
  metadata:
    dialTimeout: 10s