wait for 10ms when no incoming connection so that cpu consumption is minimised