Ensure correct order of socket data after updating socket operation mode