@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xaf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/squid/01_squid-gcc11.patch
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/squid/02_dont_treat_connect_rejections_as_peer_problems.patch
cd $(DIR_APP) && autoreconf -vfi
cd $(DIR_APP)/libltdl && autoreconf -vfi
--- /dev/null
+diff -U 3 a/src/clients/HttpTunneler.cc b/src/clients/HttpTunneler.cc
+--- a/src/clients/HttpTunneler.cc Sat Feb 12 04:47:05 2022
++++ b/src/clients/HttpTunneler.cc Wed Feb 16 18:15:42 2022
+@@ -389,8 +389,8 @@
+ Http::Tunneler::countFailingConnection()
+ {
+ assert(connection);
+- if (const auto p = connection->getPeer())
+- peerConnectFailed(p);
++// if (const auto p = connection->getPeer())
++// peerConnectFailed(p);
+ if (noteFwdPconnUse && connection->isOpen())
+ fwdPconnPool->noteUses(fd_table[connection->fd].pconn.uses);
+ }