Skip to content

amqp_connection:open_channel link channel

2 messages · Matwey V. Kornilov, Jeff Newmiller

#
Hi,

Is it a good practice to link the channel to the process going to 
consume the messages? I do want to close the channel when my consumer 
crashed, and let the broker to redeliver unacked message.

{ok, Channel} = amqp_connection:open_channel(Connection),
link(Channel),

Why there is no open_channel_link counterpart, as start and start_link? 
This is for case when channel goes down between open_channel and link.
#
I am mystified. Your question lacks any context... it is at best off-topic in R-help. The syntax you show does not seem related to R, and if you were to discuss AMQP as it relates to R then I suspect you would need to post in R-devel.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
On February 16, 2014 10:04:04 AM PST, "Matwey V. Kornilov" <matwey.kornilov at gmail.com> wrote: