]> git.proxmox.com Git - mirror_novnc.git/commit
Make sure Pako always has enough room
authorSolly Ross <sross@redhat.com>
Tue, 22 Sep 2015 20:19:52 +0000 (16:19 -0400)
committerSolly Ross <sross@redhat.com>
Wed, 23 Sep 2015 13:53:00 +0000 (09:53 -0400)
commitc802d9318930ab703d2a359dcf10fb5928f9029e
treec2438d8d161b9d82b6d5a35311a174727457de34
parent40b35fa20d459c731a5de826f4bd17634101a1db
Make sure Pako always has enough room

Previously, we used a fixed chunkSize of 100KiB for Pako's output
buffer.  Using a hardcoded size caused issues, since Pako would assume
we wanted to use multiple chunks, and we didn't deal with this.  Now,
`Inflator#inflate()` takes a new `expected` argument, which indicates
the expected output size.  If this is bigger than the current chunkSize,
Inflator allocates a new output buffer that's big enough to hold the
output.

Fixes #531
docs/notes
include/inflator.js
include/rfb.js
utils/inflator.partial.js