Handle multiple commands per connection via netconsole
authorTerry Wilson <twilson@digium.com>
Thu, 19 Apr 2012 14:35:56 +0000 (14:35 +0000)
committerTerry Wilson <twilson@digium.com>
Thu, 19 Apr 2012 14:35:56 +0000 (14:35 +0000)
commit772ad8a641f281b81bfab9a118f6cfb1a3b4b4c4
tree9123f888d75ba39fd80e43f663bea9abd30b3f03
parentf78290068a078aa867d95f4d6cc7aa94d7c2c949
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
........

Merged revisions 362537 from http://svn.asterisk.org/svn/asterisk/branches/10

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