]> git.ipfire.org Git - thirdparty/squid.git/commit
WCCP: Fix memory leak in mask assignment, improve debuggsing.
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 11 Jan 2013 05:05:52 +0000 (22:05 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 11 Jan 2013 05:05:52 +0000 (22:05 -0700)
commit182106f3fea29f13c3ed396e2e76dc36728de259
tree0e59056bdb9b1bc5bb8ba2277efe54d5cc112c8a
parentae6568e7f16e41bf5fa7335cafcc628fb9e92640
WCCP: Fix memory leak in mask assignment, improve debuggsing.

* Release temporary weight array allocated on each HERE_I_AM packet sent
  by Squid. For mask assignment these were not released properly and may
  build up to a significant size of memory over time.

* Add debug traces to send() events to report failures sending packets

* Also, on HERE_I_AM event send() failure, reduce the timeout to 2sec
  for the retry in a crude attempt to prevent router state flapping.

* Silence compiler warnings on use of connect() to disconnect a socket.
  Inconsistent OS behaviour makes the result useless in this case.

 Detected by Coverity Scan. Issues 740329, 740330, 740331, 740332,
    740333, 740441.
src/wccp.cc
src/wccp2.cc