qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject svn commit: r749752 - /qpid/trunk/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp
Date Tue, 03 Mar 2009 21:02:10 GMT
Author: astitcher
Date: Tue Mar  3 21:02:10 2009
New Revision: 749752

URL: http://svn.apache.org/viewvc?rev=749752&view=rev
Log:
Correct Socket error reporting so that it gives a useful message

Modified:
    qpid/trunk/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp?rev=749752&r1=749751&r2=749752&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp Tue Mar  3 21:02:10 2009
@@ -474,7 +474,7 @@
                     break;
                 } else {
                     // Report error then just treat as a socket disconnect
-                    QPID_LOG(error, "Error reading socket: " << qpid::sys::strError(rc)
<< "(" << rc << ")" );
+                    QPID_LOG(error, "Error reading socket: " << qpid::sys::strError(errno)
<< "(" << errno << ")" );
                     eofCallback(*this);
                     h.unwatchRead();
                     break;



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message