Writes to udp sockets may return ECONNREFUSED. As this is often only
a temporary condition, there is no need to kick the target.
This patch makes the udp sender ignore such errors rather than kicking
the client from the udp target list on the first error.
Thanks to Gerrit Renker for suggesting this change.
if (ret < 0)
goto fail;
ret = send_queued_chunks(ut->fd, ut->cq, 0);
+ if (ret == -ERRNO_TO_PARA_ERROR(ECONNREFUSED))
+ ret = 0;
if (ret < 0)
goto fail;
if (!len)
goto fail;
}
ret = write_nonblock(ut->fd, buf, len, 0);
+ if (ret == -ERRNO_TO_PARA_ERROR(ECONNREFUSED))
+ ret = 0;
if (ret < 0)
goto fail;
if (ret != len) {