Update comment on reiniting proxy of pooled client

This commit is contained in:
syeopite 2024-11-14 20:05:53 -08:00
parent 4c1db6e03e
commit bdcd9afc1f
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A
1 changed files with 6 additions and 1 deletions

View File

@ -59,7 +59,12 @@ module Invidious::ConnectionPool
http_client = pool.checkout http_client = pool.checkout
# Proxy needs to be reinstated every time we get a client from the pool # When the HTTP::Client connection is closed, the automatic reconnection
# feature will create a new IO to connect to the server with
#
# This new TCP IO will be a direct connection to the server and will not go
# through the proxy. As such we'll need to reinitialize the proxy connection
http_client.proxy = make_configured_http_proxy_client() if CONFIG.http_proxy http_client.proxy = make_configured_http_proxy_client() if CONFIG.http_proxy
response = yield http_client response = yield http_client