revise the error process of socket.cpp