Hi David,
I create a connection and channel in process 1, and subscribe a queue with process 2, which created by "spawn_link" in process 1, if I run "process_flag(trap_exit, true)" in process 1, the process 2 will receive a 'basic.cancel' message for the subscribe queue. If I don't run "process_flag(trap_exit, true)" in process 1, the process 2 will never receive that.
I don't follow. Are you saying that running "process_flag(trap_exit,
true)" in process 1, the queue will get deleted immediately (and hence
process 2 will receive a basic.cancel)?

Could you post your code please?

Cheers,
Alex
On Fri, Feb 10, 2012 at 08:22:10AM +0000, Liuzhuofu wrote:
Hi all:
I found a strange thing:
I create a connection and channel in process 1, and subscribe a queue with process 2, which created by "spawn_link" in process 1, if I run "process_flag(trap_exit, true)" in process 1, the process 2 will receive a 'basic.cancel' message for the subscribe queue. If I don't run "process_flag(trap_exit, true)" in process 1, the process 2 will never receive that.
Why ?

Regards,
David
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss at lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 4 | next ›
Discussion Overview
grouprabbitmq-discuss @
categoriesrabbitmq
postedFeb 10, '12 at 8:22a
activeFeb 10, '12 at 10:36a
posts4
users2
websiterabbitmq.com
irc#rabbitmq

2 users in discussion

Alexandru Scvorţov: 2 posts Liuzhuofu: 2 posts

People

Translate

site design / logo © 2018 Grokbase