]> git.ipfire.org Git - thirdparty/asterisk.git/commit
manager: Send fewer packets
authorSean Bright <sean.bright@gmail.com>
Wed, 24 Jul 2019 20:12:49 +0000 (16:12 -0400)
committerSean Bright <sean.bright@gmail.com>
Mon, 29 Jul 2019 18:09:49 +0000 (12:09 -0600)
commitc748187bbfc693cce2ffbdb80cdf8f0310d0ad76
tree18085d85c80a850eaea43573b75b096b6cffa21d
parentf1e0c9d1b819ccda353412e6cf8e29ff273f0145
manager: Send fewer packets

The functions that build manager message headers do so in a way that
results in a single messages being split across multiple packets. While
this doesn't matter to the remote end, it makes network captures noisier
and harder to follow, and also means additional system calls.

With this patch, we build up more of the message content into the TLS
buffer before flushing to the network. This change is completely
internal to the manager code and does not affect any of the existing
API's consumers.

Change-Id: I50128b0769060ca5272dbbb5e60242d131eaddf9
main/manager.c