update the socket with select