maybe we could set a timeout to avoid infinite loop
```
timeout=200 # 40 secs.
until check_pid_and_port $RSYNC_PID $RSYNC_PORT
do
sleep 0.2 timeout=$((timeout-1))
if [ $timeout == 0 ]
then wsrep_log_error "rsync daemon may fails already."
exit 255 # unknown error. maybe port has been taken
fi
done
```
maybe we could set a timeout to avoid infinite loop
```
timeout= $((timeout- 1))
wsrep_ log_error "rsync daemon may fails already."
timeout=200 # 40 secs.
until check_pid_and_port $RSYNC_PID $RSYNC_PORT
do
sleep 0.2
if [ $timeout == 0 ]
then
exit 255 # unknown error. maybe port has been taken
fi
done
```