Found a bug! (Not fixed yet): The chunks are getting sent in 1024 bytes, not XIA_MAXCHUNK which is like 10 thousand.