Could it be that checksums don't match sometimes when this code connects to a NTRIP caster/server that uses RTCM version 3.3?