]> 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:50 +0000 (14:09 -0400)
commit0ebfc4a19ddd6d2d53840ca18d7cd53a5a572b81
treeefc5bf66a2d412cbaa7ab792da03d14cf7544d20
parent50453846b60e862a80efec8da472fea3985e432b
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