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/
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@362536
65c4cc65-6c06-0410-ace0-
fbb531ad65f3