]> git.proxmox.com Git - mirror_novnc.git/commit
When compacting the receive buffer don't copy unused buffer space
authorJesper Alf Dam <jdam@vitalimages.com>
Wed, 7 Aug 2019 09:12:35 +0000 (11:12 +0200)
committerJesper Alf Dam <jdam@vitalimages.com>
Fri, 16 Aug 2019 17:34:09 +0000 (19:34 +0200)
commit08567b08acecf94fb65db6b2038b68fec7ea1c66
treeb9ebeb3e9e744f35d26a84b159d89415863ebfd9
parent7d755d10dc0a22f228d4ffced00c25f59509881e
When compacting the receive buffer don't copy unused buffer space

When compacting the receive buffer, we should only copy the bytes
between _rQi and _rQlen (the index of the first unread byte, and the
next write position).

Previously, we copied everything for _rQi up untill the end of the
buffer.
core/websock.js