![]() The connection pooling was broken in two ways: 1. The original URL was always used as the connection pool URL, resulting in duplicate connections to the proxy for http URLs (each http URL would get separate proxy connection) 2. The cache_url stored was always the socket level connect URL. In case of HTTPS, the lookup was done done with the real URL, but the proxy URL was stored as the "cache URL". Thus HTTPS CONNECT connections were never re-used. This fixes the code with following logic: 1. The cache key url is the real URL when no-proxy, or when HTTPS with proxy (the socket is connected to proxy, but logically it is connected to the real URL due to HTTP CONNECT request). And for HTTP with proxy, it's the proxy URL so same proxy connection can be reused for all requests going through it. 2. fetch_connect() now gets cache key URL separately, and it always gets the same value as the fetch_cache_get() calls. |
||
---|---|---|
doc | ||
libfetch | ||
scripts | ||
src | ||
test | ||
tests | ||
.gitignore | ||
.gitlab-ci.yml | ||
.mailmap | ||
AUTHORS | ||
LICENSE | ||
Make.rules | ||
Makefile | ||
README.md | ||
meson.build | ||
meson_options.txt |
README.md
Alpine Package Keeper
Alpine Package Keeper (apk) is a package manager developed for Alpine Linux.
Online documentation is available in the doc/ directory in the form of man pages.