socket check reading in client