Hi all, I work on the qpid-protn 0.34 on linux Debian 11, and with mosquito broker, with version 2.0.10-6. I have an issue and I don't understand why, when I do this:
Chain send message just after an on_sender_open, it's ok, and relatively fast class client : public proton::messaging_handler { public: void on_connection_open(proton::connection& con) { con.open_receiver(myAddress); } void on_sender_open(proton::sender& sender) { proton::message msg; req.body("test"); sender.send(msg); } } And if I do the following code, i.e. Handle the my client object to reuse the connection, and send the message with this connection, every time when I want class client : public proton::messaging_handler { private: proton::sender m_sender; void on_connection_open(proton::connection& con) { con.open_receiver(myAddress); } void on_sender_open(proton::sender& s) { m_sender = s; } void send_msg()(const proton::message& msg) { m_sender.send(msg); } } It's works, but unfortunately, with this code, it's slower than the previous one (around 2seconds) Any help to understand what's happening, will be helpful. Regards Xavier Millieret ________________________________ Eaton Industries (France) S.A.S ~ Si?ge social: 110 Rue Blaise Pascal, Immeuble Le Vis?o - B?timent A Innovall?e, 38330, Montbonnot-St.-Martin, France ~ Lieu d'enregistrement au registre du commerce: Grenoble ~ Num?ro d'enregistrement: 509 653 176 ~ Capital social souscrit et liber?:EUR 16215441 ~ Num?ro de TVA: FR47509653176 ________________________________