You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2015/01/08 22:51:50 UTC
svn commit: r1650389 - in /qpid/trunk/qpid/cpp/src/qpid/messaging/amqp:
ReceiverContext.cpp SenderContext.cpp
Author: chug
Date: Thu Jan 8 21:51:49 2015
New Revision: 1650389
URL: http://svn.apache.org/r1650389
Log:
QPID-6298: [C++ Messaging] Closing sender/receiver frees proton link.
Tested with proton 0.9, 0.7, and 0.6.
Modified:
qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp
qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/SenderContext.cpp
Modified: qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp?rev=1650389&r1=1650388&r2=1650389&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp Thu Jan 8 21:51:49 2015
@@ -39,7 +39,7 @@ ReceiverContext::ReceiverContext(pn_sess
capacity(0), used(0) {}
ReceiverContext::~ReceiverContext()
{
- //pn_link_free(receiver);
+ pn_link_free(receiver);
}
void ReceiverContext::setCapacity(uint32_t c)
Modified: qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/SenderContext.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/SenderContext.cpp?rev=1650389&r1=1650388&r2=1650389&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/SenderContext.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/SenderContext.cpp Thu Jan 8 21:51:49 2015
@@ -49,7 +49,7 @@ SenderContext::SenderContext(pn_session_
SenderContext::~SenderContext()
{
- //pn_link_free(sender);
+ pn_link_free(sender);
}
void SenderContext::close()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org