openbsd-ports/www/squid/patches/patch-src_store_swapout_cc
sthen 50d6439440 major update to squid-4.5
quick update notes below, but you should still review upstream's
RELEASENOTES.html if you use this.

- if you explicitly configure sslcrtd_program (for advanced tls mitm
configurations) you need to change from /usr/local/libexec/squid/sslcrtd
to /usr/local/libexec/squid/security_file_certgen in your config (if you
just use options on the http_port line to enable this without extra
config, this doesn't need to change).

- if using a cert helper disk cache, you may need to clear/reinitialize
the directory (not mentioned in release notes but I needed this).

- the SMB_LM helpers (for old lanmanager protocol, which should not be
used anyway) are no longer packaged, following upstream's change in default
build.
2019-02-05 23:03:15 +00:00

20 lines
731 B
Plaintext

$OpenBSD: patch-src_store_swapout_cc,v 1.1 2019/02/05 23:03:16 sthen Exp $
proposed fix from https://bugs.squid-cache.org/show_bug.cgi?id=4823
see e.g. comment 36 for description
Index: src/store_swapout.cc
--- src/store_swapout.cc.orig
+++ src/store_swapout.cc
@@ -304,8 +304,9 @@ storeSwapOutFileClosed(void *data, int errflag, StoreI
storeConfigure();
}
- e->disk().finalizeSwapoutFailure(*e);
e->releaseRequest(); // TODO: Keep the memory entry (if any)
+ e->swap_status = SWAPOUT_FAILED;
+ e->disk().finalizeSwapoutFailure(*e);
} else {
/* swapping complete */
debugs(20, 3, "storeSwapOutFileClosed: SwapOut complete: '" << e->url() << "' to " <<