[ https://issues.apache.org/jira/browse/PROTON-2540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17542485#comment-17542485 ]
ASF GitHub Bot commented on PROTON-2540: ---------------------------------------- DreamPearl commented on code in PR #370: URL: https://github.com/apache/qpid-proton/pull/370#discussion_r882665698 ########## cpp/src/reconnect_test.cpp: ########## @@ -159,6 +167,7 @@ class tester_base: public proton::messaging_handler { } void on_transport_close(proton::transport& t) override { + ASSERT_THROWS_MSG(proton::error, "No active connection", t.connection().url()); Review Comment: Checking for an exception thrown here when the connection is not active. > [cpp] Provide a way to query proton::connection for the url it was created > with > ------------------------------------------------------------------------------- > > Key: PROTON-2540 > URL: https://issues.apache.org/jira/browse/PROTON-2540 > Project: Qpid Proton > Issue Type: New Feature > Components: cpp-binding > Reporter: Rakhi Kumari > Assignee: Rakhi Kumari > Priority: Major > > Provide a way to connection.url() to identify a connection in a trivial > connection handler. -- This message was sent by Atlassian Jira (v8.20.7#820007) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org