Fix an fd leak that would occur in HTTP AMI sessions
authorMark Michelson <mmichelson@digium.com>
Tue, 10 Feb 2009 21:45:14 +0000 (21:45 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 10 Feb 2009 21:45:14 +0000 (21:45 +0000)
commite909bfcea9903b60258e6d1f98791968e5232aab
treeff85b6150f1a7e9d48a8f824434f59b7add6aa68
parent6304c09149839259713c97c87cb06db74d2b530e
Fix an fd leak that would occur in HTTP AMI sessions

The explanation behind this fix is a bit complicated, and I've already
typed it up in the code as a huge comment inside of manager.c, so I'll
give the abridged version here.

We needed a way to separate action-specific data from session-specific data.
Unfortunately, the only way to maintain API compatibility and to not have to
change every single manager action was to rename the current mansession structure
and wrap it inside a new mansession structure which actually contains action-
specific data.

(closes issue #14364)
Reported by: awk
Patches:
      14364_better.patch uploaded by putnopvut (license 60)
Tested by: putnopvut

Review: http://reviewboard.digium.com/r/148/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@174764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/manager.c