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

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

 



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.




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux