]> 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:26:33 +0000 (14:26 +0000)
committerTerry Wilson <twilson@digium.com>
Thu, 19 Apr 2012 14:26:33 +0000 (14:26 +0000)
commit07a9b1744d81a4173fe5b6275d429e2a277a9d05
treec3dbd5edcb8a26c8e58e2afad40083ad2d2d4659
parent0e488d7cc4f7ad746c584b5e4ba5e030dd8c998e
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
main/asterisk.c