diff options
author | Dylan Frank <b00mx0r@aureus.pw> | 2018-04-08 20:41:04 -0700 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-04-09 04:41:04 +0100 |
commit | 93fa544b2671b078cf81ac04fbb4b48d5e2d1677 (patch) | |
tree | bd4f0aaf637a95e00fff5702a5d4bb341b71a61d /src/inspsocket.cpp | |
parent | 1155320da0ba4454f028b30bc0fb5313e33946b3 (diff) |
Optimize some behaviour in the core (#1476).
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r-- | src/inspsocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<char*>(elem.data()); iovecs[j].iov_len = elem.length(); - rv_max += elem.length(); + rv_max += iovecs[j].iov_len; } rv = SocketEngine::WriteV(this, iovecs, bufcount); } |