tinyproxy / tinyproxy

tinyproxy - a light-weight HTTP/HTTPS proxy daemon for POSIX operating systems
GNU General Public License v2.0
4.67k stars 645 forks source link

why connection:keep-alive in http protocol does not work. #511

Open wubingwei opened 8 months ago

wubingwei commented 8 months ago

IMPORTANT NOTICE

connection:keep-alive in http protocol does not work.

connect:close in source code http message https://github.com/tinyproxy/tinyproxy/blob/2935519eb7f0d1d740fc1c89a3dc2279c9c80208/src/utils.c#L44

Tinyproxy version

tinyproxy 1.11.0-rc1-70-git-ef60434

Issue

When I use tinyproxy as a forward proxy, I hope to maintain a long link between the proxy and the server. But it was very eye-catching and did not succeed. Every time a request is made, the proxy will default to initiating a request to close the connection.

image

rofl0r commented 8 months ago

i suspect this was added to simplify things on the proxy code's side, but feel free to comment out that line and tell us what happens.