The original report associated with this fix can be found at
http://tracker.ceph.com/issues/13002. I reopen one in case it
needs to be backported or something alike.
Fixes: #14928
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
<< "-" << msgr->cct->_conf->ms_bind_port_max << ": "
<< cpp_strerror(errno) << dendl;
r = -errno;
+ listen_addr.set_port(0); // Clear port before retry, otherwise we shall fail again.
continue;
}
ldout(msgr->cct, 10) << __func__ << " bound on random port " << listen_addr << dendl;