socket read all data once