activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r594260 - /activemq/activemq-cpp/trunk/src/test/activemq/transport/IOTransportTest.h
Date Mon, 12 Nov 2007 19:09:29 GMT
Author: tabish
Date: Mon Nov 12 11:09:28 2007
New Revision: 594260

URL: http://svn.apache.org/viewvc?rev=594260&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/trunk/src/test/activemq/transport/IOTransportTest.h

Modified: activemq/activemq-cpp/trunk/src/test/activemq/transport/IOTransportTest.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/activemq/transport/IOTransportTest.h?rev=594260&r1=594259&r2=594260&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/activemq/transport/IOTransportTest.h (original)
+++ activemq/activemq-cpp/trunk/src/test/activemq/transport/IOTransportTest.h Mon Nov 12 11:09:28
2007
@@ -187,13 +187,11 @@
                         outputStream->write( m->c );
                     }
                 }catch( decaf::lang::Exception& ex ){
-                    CommandIOException cx( ex );
-                    cx.setMark( __FILE__, __LINE__ );
-                    throw cx;
+                    ex.setMark( __FILE__, __LINE__ );
+                    throw CommandIOException( ex );
                 }
                 catch( ... ){
-                    CommandIOException cx( __FILE__, __LINE__, "writeCommand");
-                    throw cx;
+                    throw CommandIOException( __FILE__, __LINE__, "writeCommand");
                 }
             }
 



Mime
View raw message