verify if the recv() function return an error -1