Prevent infinite loop from occuring when we've only received a partial packet for Xml over Tcp protocol
Add test to check that we receive packets split over socket reads