activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r594254 - /activemq/activemq-cpp/decaf/trunk/src/main/decaf/net/TcpSocket.cpp
Date Mon, 12 Nov 2007 18:39:58 GMT
Author: tabish
Date: Mon Nov 12 10:39:57 2007
New Revision: 594254

URL: http://svn.apache.org/viewvc?rev=594254&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103

Changing the close behavior of the Scoket classes.  We don't want to delete streams in the
socket close methods as there could be someone using them in a read thread.  We want to close
them in close and delete them in the dtor.

Modified:
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/net/TcpSocket.cpp

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/net/TcpSocket.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/net/TcpSocket.cpp?rev=594254&r1=594253&r2=594254&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/net/TcpSocket.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/net/TcpSocket.cpp Mon Nov 12 10:39:57
2007
@@ -151,6 +151,7 @@
         // When connected we first shutdown, which breaks our reads and writes
         // then we close to free APR resources.
         if( isConnected() ) {
+            apr_socket_shutdown( socketHandle, APR_SHUTDOWN_READWRITE );
             apr_socket_close( socketHandle );
             socketHandle = INVALID_SOCKET_HANDLE;
         }



Mime
View raw message