You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Marco Bisioli (JIRA)" <qp...@incubator.apache.org> on 2009/07/29 13:40:14 UTC
[jira] Commented: (QPID-652) Correctly handle version mismatches on
connection
[ https://issues.apache.org/jira/browse/QPID-652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12736573#action_12736573 ]
Marco Bisioli commented on QPID-652:
------------------------------------
I made a quick fix for this issue in the C++ client
bye
Marco
*** Connector.cpp.orig 2009-03-10 20:08:18.000000000 +0100
--- Connector.cpp 2009-07-28 17:20:47.000000000 +0200
***************
*** 355,360 ****
--- 355,363 ----
if (protocolInit.decode(in)) {
//TODO: check the version is correct
QPID_LOG(debug, "RECV " << identifier << " INIT(" << protocolInit << ")");
+ if(!(protocolInit==version)){
+ throw Exception(QPID_MSG("Unsupported version: " << protocolInit));
+ }
}
initiated = true;
}
> Correctly handle version mismatches on connection
> -------------------------------------------------
>
> Key: QPID-652
> URL: https://issues.apache.org/jira/browse/QPID-652
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker, C++ Client
> Affects Versions: M4
> Reporter: Gordon Sim
> Assignee: Gordon Sim
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org