i/o timeout when some clients connect to the proxy
KewaiiGamer opened this issue · comments
Expected Behavior
Client should be able to connect to proxy
Current Behavior
goproxy is giving i/o timeout when some clients try to connect.
Steps to Reproduce
- Setup goproxy with the following command
- proxy http -t tcp -p :8000 --auth-nouser --auth-url http://127.0.0.1:3000/auth
- Connect to proxy via client
- Proxy will give i/o on some clients. Not all however
Context (Environment)
- proxy version is : commercial_12.5
- full command is proxy http -t tcp -p :8000 --auth-nouser --auth-url http://127.0.0.1:3000/auth
- system is : ubuntu 20.04
- error example in log: 2023/01/22 00:38:52.883349 WARN decoder error , from 33.5.2.76:50727, ERR:http decoder read err: http decoder read err: read tcp 192.168.0.5:8000->33.5.2.76:50727: i/o timeout
Detailed Description
As I have discussed on telegram not all customers have this issue. Dev already said it is issue with client not sending correct http header.
Possible Implementation
This is the line of code on free version where the eror happens.
Line 249 in f7b3a76
I also noticed the maximum bytes used on conn.Read() is defined as 4096 as seen at
Line 72 in 03670bf
Note: I have the commercial version
try increase read buffer, --http-header-buffer=8192
or greater