You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
4 years ago
..
.eslintrc Initial commit 5 years ago
assertions.js Initial commit 5 years ago
fake.websocket.js Send data one byte at a time in tests 4 years ago
karma-test-main.js Initial commit 5 years ago
playback-ui.js Initial commit 5 years ago
playback.js Initial commit 5 years ago
test.base64.js Initial commit 5 years ago
test.display.js Initial commit 5 years ago
test.helper.js Initial commit 5 years ago
test.keyboard.js Initial commit 5 years ago
test.localization.js Initial commit 5 years ago
test.mouse.js Initial commit 5 years ago
test.rfb.js Avoid deprecated called.once from sinon-chai 4 years ago
test.util.js Initial commit 5 years ago
test.websock.js Don't compact the receive buffer unless we've actually run out of space 4 years ago
test.webutil.js Initial commit 5 years ago
vnc_playback.html Fix up errors and warnings in vnc_playback.html 4 years ago