stevenarella/src
iceiix b98ba3afd2
Fix packet compression (fixes FTB Beyond, etc.). Closes #146 (#147)
Previously, the zlib compressor was initialized once, lazily, then reused for each packet by resetting the stream. This didn't properly emit the zlib headers, so packet compression was broken and caused "java.util.zip.DataFormatException: incorrect header check" on the server. Since packets are only compressed above a threshold, this problem manifested itself only on larger servers, such as 1.10.2 FTB Beyond and Skyfactory 3, and 1.12.2 SevTech: Ages, which require sending a large ModList above the compression threshold enabled by the server. Change to instead recreate the zlib compressor, each time it is used as to capture the full header. For symmetry, the decompressor is also recreated each time.

* Removes self.compression_write and self.compression_read instance variables

* Remove self.compression_write, initialize with cursor

* Log compressing/decompressing packets in network debug mode
2019-05-12 12:15:02 -07:00
..
console Use field init shorthand, instead of x:x, just x, 2018-11-04 13:43:30 -08:00
ecs Use field init shorthand, instead of x:x, just x, 2018-11-04 13:43:30 -08:00
entity Add double-jump to toggle creative flight. Closes #46 2019-01-26 13:00:19 -08:00
gl Update for glutin wasm_stub branch tracking Rust 2018 changes 2019-03-03 11:50:52 -08:00
model Update to rand 0.6.5 and migrate off deprecated methods. Closes #81 2019-05-08 19:32:05 -07:00
nbt 1.12.2 protocol support (340) (#40) 2018-12-02 19:37:41 -08:00
protocol Fix packet compression (fixes FTB Beyond, etc.). Closes #146 (#147) 2019-05-12 12:15:02 -07:00
render Add support for compiling WebAssembly wasm32-unknown-unknown target (#92) 2019-03-03 08:32:36 -08:00
screen Add Forge handshake support. Closes #88 (#134) 2019-05-05 18:39:58 -07:00
server Forge 1.8.9-1.12.2 handshake protocol support (#144) 2019-05-11 18:37:33 -07:00
types 1.14 protocol support (477) (#132). Closes #72 2019-05-04 16:04:19 -07:00
ui Update to rand 0.6.5 and migrate off deprecated methods. Closes #81 2019-05-08 19:32:05 -07:00
world Add 18w50a (451) multiprotocol support (#79) 2019-01-10 17:21:19 -08:00
auth.rs Update to use crate:: for current crate, for Rust 2018 edition 2018-11-04 12:06:00 -08:00
chunk_builder.rs Update to rand 0.6.5 and migrate off deprecated methods. Closes #81 2019-05-08 19:32:05 -07:00
format.rs Recognize translate text components, instead of showing "UNHANDLED" 2018-12-02 19:25:11 -08:00
item.rs 1.13.2 (404) multiprotocol support (#67) 2018-12-28 21:22:58 -08:00
macros.rs Base implementation for worlds/blocks 2016-03-18 22:24:30 +00:00
main.rs Add command-line option to change default protocol version 2019-05-06 16:00:01 -07:00
resources.rs Add support for compiling WebAssembly wasm32-unknown-unknown target (#92) 2019-03-03 08:32:36 -08:00
settings.rs Add double-jump to toggle creative flight. Closes #46 2019-01-26 13:00:19 -08:00