Go to file
Timo Teräs acca5cbff0 libfetch: fix connection pooling for proxied http/https requests
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.
2021-01-19 16:42:38 +02:00
doc man info: --install-if and --rinstall-if do not have short options 2021-01-17 15:02:25 +02:00
libfetch libfetch: fix connection pooling for proxied http/https requests 2021-01-19 16:42:38 +02:00
scripts scripts: add script to generate APK cross file 2020-10-09 16:09:19 +03:00
src database.c: Fixed package DESCRIPTION parsing 2021-01-14 16:19:26 +02:00
test database.c: Fixed package DESCRIPTION parsing 2021-01-14 16:19:26 +02:00
tests add separate vertest applet for version string testing 2020-10-09 16:09:19 +03:00
.gitignore gitignore: add generated help.h header 2020-05-28 17:56:22 +03:00
.gitlab-ci.yml ci: also install static deps 2020-10-09 16:09:19 +03:00
.mailmap update mailmap with my newer email 2020-08-29 17:31:30 +03:00
AUTHORS Initial commit of some stuff written so far. Still in state of flux. Expect 2008-04-17 14:09:13 +00:00
LICENSE add LICENSE 2020-05-07 10:45:34 +03:00
Make.rules apk-tools-2.12.0_rc1 2020-08-25 14:50:12 +03:00
Makefile apk-tools-2.12.0 2020-10-09 14:18:45 +03:00
README.md readme: fix name of doc directory 2020-02-23 18:55:19 +01:00
meson.build add separate vertest applet for version string testing 2020-10-09 16:09:19 +03:00
meson_options.txt build: adopt meson build for v3 branch 2020-10-09 16:09:19 +03:00

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.