[squid-dev] [PATCH] Fix HttpRequest object leaks in Squid 4.0.x
Nathan Hoad
nathan at getoffmalawn.com
Thu Mar 10 04:41:39 UTC 2016
Hello,
The attached patch fixes a rather profuse memory leak in the Squid
4.0.x series where under certain conditions, HttpRequest objects would
get lost. I can provide more information here if requested,
specifically a Valgrind trace and configuration to reproduce this.
I suggest that a better long term solution would be to make the
members private, and have setter methods to ensure the correct
unlocking occurs. Alternatively, using a smart pointer, e.g.
Http::HttpRequestPointer. If people have any recommendations here, let
me know and I can work towards this.
Thank you,
Nathan.
P.S. I have two more patches that fix less severe memory leaks that
are quite distinct from one another. Should I submit them as a single
patch, or multiple patches? At least one of the patches will involve
some discussion on how to improve it. They are not large.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: http-request-leaks.patch
Type: text/x-patch
Size: 1063 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20160310/2786f903/attachment.bin>
More information about the squid-dev
mailing list