KasmVNC/kasmweb/tests
Jesper Alf Dam 09de4b8349 Don't compact the receive buffer unless we've actually run out of space
Previously, we would compact the buffer (moving unread data to the
start of the buffer) as follows:

- after processing a message, if there are zero unread bytes, just reset
  the indices for first and last unread byte to zero
- else, if at least 1/8th of the buffer is used, copy remaining data to the beginning of the buffer

The second option is never actually necessary, as before inserting new data
into the array, we already check if there's enough free space, and
compact the buffer first if necessary. So we've been doing a lot of
copies that weren't actually needed. Let's not do that any more.
2021-03-29 11:45:00 +03:00
..
.eslintrc Initial commit 2020-09-20 12:16:44 +00:00
assertions.js Initial commit 2020-09-20 12:16:44 +00:00
fake.websocket.js Send data one byte at a time in tests 2021-03-29 11:34:38 +03:00
karma-test-main.js Initial commit 2020-09-20 12:16:44 +00:00
playback-ui.js Initial commit 2020-09-20 12:16:44 +00:00
playback.js Initial commit 2020-09-20 12:16:44 +00:00
test.base64.js Initial commit 2020-09-20 12:16:44 +00:00
test.display.js Initial commit 2020-09-20 12:16:44 +00:00
test.helper.js Initial commit 2020-09-20 12:16:44 +00:00
test.keyboard.js Initial commit 2020-09-20 12:16:44 +00:00
test.localization.js Initial commit 2020-09-20 12:16:44 +00:00
test.mouse.js Initial commit 2020-09-20 12:16:44 +00:00
test.rfb.js Avoid deprecated called.once from sinon-chai 2021-03-29 11:44:04 +03:00
test.util.js Initial commit 2020-09-20 12:16:44 +00:00
test.websock.js Don't compact the receive buffer unless we've actually run out of space 2021-03-29 11:45:00 +03:00
test.webutil.js Initial commit 2020-09-20 12:16:44 +00:00
vnc_playback.html Fix up errors and warnings in vnc_playback.html 2021-03-29 11:38:25 +03:00