[socket] improved client socket check validation