]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Handle multiple commands per connection via netconsole
authorTerry Wilson <twilson@digium.com>
Thu, 19 Apr 2012 14:31:59 +0000 (14:31 +0000)
committerTerry Wilson <twilson@digium.com>
Thu, 19 Apr 2012 14:31:59 +0000 (14:31 +0000)
commita132a4654312cc217dc35f37cb42901e83b46168
tree9fea582ee5becd7ee5a8a9fdafe6cbd440a300de
parent90ad4534f0a1a03a52add33b9337b756c6d6843e
Handle multiple commands per connection via netconsole

Asterisk would accept multiple NULL-delimited CLI commands via the
netconsole socket, but would occasionally miss a command due to the
command not being completely read into the buffer. This patch ensures
that any partial commands get moved to the front of the read buffer,
appended to, and properly sent.

(closes issue ASTERISK-18308)
Review: https://reviewboard.asterisk.org/r/1876/
........

Merged revisions 362536 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@362537 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/asterisk.c