mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-09 01:34:50 +01:00
Fix version handshake to handle slow data
This commit is contained in:
parent
642a67f76f
commit
41e6fedba6
@ -897,8 +897,8 @@ export default class RFB extends EventTargetMixin {
|
||||
// Message Handlers
|
||||
|
||||
_negotiate_protocol_version() {
|
||||
if (this._sock.rQlen < 12) {
|
||||
return this._fail("Received incomplete protocol version.");
|
||||
if (this._sock.rQwait("version", 12)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const sversion = this._sock.rQshiftStr(12).substr(4, 7);
|
||||
|
Loading…
Reference in New Issue
Block a user