automatically switch to TCP if message too large for a UDP packet