You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2007/07/11 17:08:04 UTC
svn commit: r555296 -
/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketOutputStream.cpp
Author: tabish
Date: Wed Jul 11 08:08:03 2007
New Revision: 555296
URL: http://svn.apache.org/viewvc?view=rev&rev=555296
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103
Modified:
activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketOutputStream.cpp
Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketOutputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketOutputStream.cpp?view=diff&rev=555296&r1=555295&r2=555296
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketOutputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/SocketOutputStream.cpp Wed Jul 11 08:08:03 2007
@@ -78,7 +78,7 @@
while( remaining > 0 && !closed )
{
int length = ::send( socket, (const char*)buffer, (int)remaining, sendOpts );
- if( length == -1 && closed ){
+ if( length == -1 || closed ){
throw IOException( __FILE__, __LINE__,
"activemq::io::SocketOutputStream::write - %s", SocketError::getErrorString().c_str() );
}