Change read to readexactly to get that actual data
Insert debug logging to run down problem