Adding fix for very long responses that may not return with just one fread.  Fixed logic in handling long blocked commands.