]> 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>
Tue, 30 Jul 2019 13:15:00 +0000 (07:15 -0600)
commit5096a5ddf7af28501cefbca992d3c19cddd1e73f
treee9b622e46a9b43e0b7a61ae5eb5fa375eed2ebd3
parent8e09fbb4e9f9dea81c1ffcffdc0c629baaf136a9
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