activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r559807 - /activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/TcpSocket.cpp
Date Thu, 26 Jul 2007 13:29:05 GMT
Author: tabish
Date: Thu Jul 26 06:29:04 2007
New Revision: 559807

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

Working on APRizing the sockets, currently somewhat functional.

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

Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/TcpSocket.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/TcpSocket.cpp?view=diff&rev=559807&r1=559806&r2=559807
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/TcpSocket.cpp (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/TcpSocket.cpp Thu Jul 26 06:29:04
2007
@@ -28,14 +28,15 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 TcpSocket::TcpSocket() throw ( SocketException )
-  : socketHandle( INVALID_SOCKET_HANDLE ),
+  : apr_pool( NULL ),
+    socketHandle( INVALID_SOCKET_HANDLE ),
     inputStream( NULL ),
     outputStream( NULL ) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
 TcpSocket::TcpSocket( SocketHandle socketHandle )
-:
+ :  apr_pool( NULL ),
     socketHandle( INVALID_SOCKET_HANDLE ),
     inputStream( NULL ),
     outputStream( NULL ) {
@@ -138,7 +139,6 @@
     // 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