The /sockread -n switch reads one line at a time, that's what -n is for. If you don't want to do that then don't use -n.