Made another change to the way we were reading the data from the client socket. It turned out I had it correct a while back.