From 93fa544b2671b078cf81ac04fbb4b48d5e2d1677 Mon Sep 17 00:00:00 2001 From: Dylan Frank Date: Sun, 8 Apr 2018 20:41:04 -0700 Subject: Optimize some behaviour in the core (#1476). --- src/inspsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inspsocket.cpp') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 709ad443b..42e2640a6 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -293,7 +293,7 @@ void StreamSocket::FlushSendQ(SendQueue& sq) const SendQueue::Element& elem = *i; iovecs[j].iov_base = const_cast(elem.data()); iovecs[j].iov_len = elem.length(); - rv_max += elem.length(); + rv_max += iovecs[j].iov_len; } rv = SocketEngine::WriteV(this, iovecs, bufcount); } -- cgit v1.3.1-10-gc9f91