Open sinoohe opened 7 years ago
I ran your code as written and it worked perfectly. Can't reproduce.
I ran into this issues as well. Important part for reproduction seems to be not being able to reconnect on the first try. We reproduced this by taking down the broker for more than one heartbeat period and then started it up again.
Upon further inspection, it does try to reconnect and eventually succeeds, but takes a long time (default socket timeout + reconnectTimeInSeconds
) between tries. Passing shorter and more reasonable timeout
through options.connectionOptions
fixed our main issue with long reconnects.
Hi, I wrote a code that the channel is not reconnected! I think something is wrong! I start the script and after 5 seconds I restart the rabbitmq, as a result the nodejs code doesn't continue and pauses!