Include payload in retransmit queue length

Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
Erik Boasson 2020-06-22 17:29:59 +02:00 committed by eboasson
parent 66daba9f2f
commit 312df32605
5 changed files with 5 additions and 5 deletions

View file

@ -1140,7 +1140,7 @@ static struct cfgelem internal_cfgelems[] = {
"<p>This element allows configuring the base interval for sending "
"writer heartbeats and the bounds within which it can vary.</p>"),
UNIT("duration_inf")),
STRING("MaxQueuedRexmitBytes", NULL, 1, "50 kB",
STRING("MaxQueuedRexmitBytes", NULL, 1, "512 kB",
MEMBER(max_queued_rexmit_bytes),
FUNCTIONS(0, uf_memsize, 0, pf_memsize),
DESCRIPTION(

View file

@ -492,7 +492,7 @@ int nn_xmsg_compare_fragid (const struct nn_xmsg *a, const struct nn_xmsg *b)
size_t nn_xmsg_size (const struct nn_xmsg *m)
{
return m->sz;
return m->sz + (m->refd_payload ? (size_t) m->refd_payload_iov.iov_len : 0);
}
enum nn_xmsg_kind nn_xmsg_kind (const struct nn_xmsg *m)