ginuerzh / gost

GO Simple Tunnel - a simple tunnel written in golang
MIT License
15.57k stars 2.44k forks source link

Frequent timeout #755

Open arisolt opened 2 years ago

arisolt commented 2 years ago

I'm using gost to forward browser traffic to a remote SOCKS proxy. I start gost with:

gost -L=:12344 -F=socks://[username]:[password]@[proxy_ip]:[proxy_port]

Then, I configure my browser to connect to the proxy at 127.0.0.1:12344. The problem is that very often, when the browser sends a request, after a few moments gost returns:

http.go:272: [http] 127.0.0.1:60316 -> 127.0.0.1:12344 : read tcp [public_ip_of_local_machine]:37838->[proxy_ip]:1080: i/o timeout

Retrying the request from the browser usually results in a successful connection. Is there a way to avoid these frequent timeouts?

Thank you!