If "connection" and "channel" are available, but "exchange declare" time out, your modification seems the only way to solve it. It a small probability.
If "connection" and "channel" are available, but "exchange declare" time out, your modification seems the only way to solve it. It a small probability.