summaryrefslogtreecommitdiff
path: root/cpp/lib/common
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-09-07 09:19:23 +0000
committerGordon Sim <gsim@apache.org>2007-09-07 09:19:23 +0000
commitcb020e95d54175ca6f64db44e53eca66b932f9af (patch)
tree42f27c9503b46cd3f333b910248da6d845f01a2f /cpp/lib/common
parent442a7a7ec85fed8ce1ea75ef12f06557d5d3df34 (diff)
downloadqpid-python-cb020e95d54175ca6f64db44e53eca66b932f9af.tar.gz
Fixes for QPID-581 & QPID-563
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@573516 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/common')
-rw-r--r--cpp/lib/common/sys/apr/APRSocket.cpp1
-rw-r--r--cpp/lib/common/sys/apr/LFSessionContext.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/cpp/lib/common/sys/apr/APRSocket.cpp b/cpp/lib/common/sys/apr/APRSocket.cpp
index 4917803370..f68d51d8e4 100644
--- a/cpp/lib/common/sys/apr/APRSocket.cpp
+++ b/cpp/lib/common/sys/apr/APRSocket.cpp
@@ -53,7 +53,6 @@ void APRSocket::write(qpid::framing::Buffer& buffer){
void APRSocket::close(){
if(!closed){
- std::cout << "Closing socket " << socket << "@" << this << std::endl;
CHECK_APR_SUCCESS(apr_socket_close(socket));
closed = true;
}
diff --git a/cpp/lib/common/sys/apr/LFSessionContext.cpp b/cpp/lib/common/sys/apr/LFSessionContext.cpp
index a06b7537ee..8a7ce18136 100644
--- a/cpp/lib/common/sys/apr/LFSessionContext.cpp
+++ b/cpp/lib/common/sys/apr/LFSessionContext.cpp
@@ -158,7 +158,7 @@ void LFSessionContext::close(){
void LFSessionContext::handleClose(){
handler->closed();
APRPool::free(fd.p);
- std::cout << "Session closed [" << &socket << "]" << std::endl;
+ if (debug) std::cout << "Session closed [" << &socket << "]" << std::endl;
delete handler;
delete this;
}