Z_PARTIAL_FLUSH
if (flush == Z_PARTIAL_FLUSH) {
deflate(&strm, len ? Z_NO_FLUSH : Z_PARTIAL_FLUSH);
err = deflate(strm, Z_PARTIAL_FLUSH);