[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [PATCH blktests] nbd/rc: check nbd-server port readiness in _start_nbd_server()



On 7/18/24 4:12 AM, Shin'ichiro Kawasaki wrote:
+	# Wait for nbd-server start listening the port
+	for ((i = 0; i < 10; i++)); do
+		if nbd-client -l localhost &> "$FULL"; then
+			break
+		fi
+		sleep 1
+	done

Has it been considered to reduce the delay from one second to e.g. a
tenth of a second and to increase the number of iterations? I do not
expect it to take one second for nbd-server to start.

Thanks,

Bart.


Reply to: