poll non-blocking tcp connection