You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by Frank Quinn <fq...@nyx.com> on 2013/07/18 12:57:32 UTC

Detecting and capturing underlying problems and event with pn_messenger

Hi Folks,

During testing, we discovered that sometimes when a pn_messenger_send is called, that it will not return an error code in the event of failure. This is despite the fact that pn_messenger_send was being used in blocking mode. This seemed to be caused in the line checking connection state which does not seem to return any errors and instead simply prints them to screen:

messenger.c:578 (latest svn)

} else if (pn_connector_closed(ctor) && !(pn_connection_state(conn) & PN_REMOTE_CLOSED)) {
    pn_error_report("CONNECTION", "connection aborted");

It did draw our attention though to how we could use messenger to detect errors in general - perhaps those which are happening asynchronously under the hood which the application developer will be oblivious to unless some sort of callback can be generated while initializing the pn_messenger methods to handle it? I see modifications are being made to messenger to make it non-blocking as well which is great, but it may make the requirement to detect errors asynchronously all the more prominent.

Is this something which is available at the moment which I am missing or is it in planning / up for discussion?

Think that's the last question for a while - thanks folks!

Cheers,
Frank

________________________________

Please consider the environment before printing this e-mail.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy.

Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
------------------------------------------------------------------------------

Please consider the environment before printing this email.

Visit our website at http://www.nyse.com <http://www.nyse.com>
*****************************************************************************
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.