]> git.ipfire.org Git - thirdparty/squid.git/commit
WCCP: Fix memory leak in mask assignment, improve debuggsing.
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 28 Jan 2013 11:25:34 +0000 (04:25 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 28 Jan 2013 11:25:34 +0000 (04:25 -0700)
commit21cec590a21e82dc727ecca5fdef599d2d883228
treedf430c7de2c9c0849203cf5619da8e053e4c263d
parent35dac0ec5a4c2db65bf7e1181d0ca342f8666243
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