Re: [PATCH blktests] nbd/rc: check nbd-server port readiness in _start_nbd_server()
On Jul 18, 2024 / 07:35, Bart Van Assche wrote:
> 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.
No, I did not think about it. 0.1 second wait sounds the better. Will post v2.
Reply to: