qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ivanov <iv...@logit-ag.de>
Subject Proton messangers after fork
Date Tue, 04 Aug 2015 17:24:07 GMT

I have a process that receives amqp messages using proton messenger in passive mode
(inside select-based event loop) and sends replies back using second messenger in
non-passive mode. I want to handle certain messages in a separate process instance.
Normally I would just fork current process and do all necessary job in a child,
but I have certain doubts about messenger connections. Should I just close corresponding
file descriptors and free the messengers? Will this also affect messenger connections
in parent? Will it be safe if I will just create a new messenger in a child
(most probably in non-passive blocking mode) to send back reply messages?
I am concerned about any possible implicit proton initializations: should I somehow
re-initialize the library in child?

Or is it more safe just to exec a different process in this case?

Many thanks,
 \   / |			           |
 (OvO) |  Mikhail Iwanow                   |
 (^^^) |      Voice:   +7 (911) 223-1300   |
  \^/  |      E-mail:  ivans@logit-ag.de   |
  ^ ^  |                                   |

To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org

View raw message