BUG#: 8762
[tpot/pegasus/.git] / src / Pegasus / Common / HTTPConnection.cpp
index a7742de35ccd4e192b5ce629ae584c41db5f3be3..7c88dfc7aad03c5e61bd1e165131e6d6de36a3a0 100644 (file)
@@ -311,7 +311,7 @@ HTTPConnection::~HTTPConnection()
     // HTTPConnection::handleEnqueue(), we are running a risk of
     // accessing a deleted object and crashing cimserver.
     AutoMutex connectionLock(_connection_mut);
-     _socket->close();
+    _socket->close();
 
     PEG_METHOD_EXIT();
 }
@@ -321,6 +321,22 @@ void HTTPConnection::enqueue(Message *message)
     handleEnqueue(message);
 }
 
+Boolean HTTPConnection::isActive()
+{
+    PEG_METHOD_ENTER(TRC_HTTP, "HTTPConnection::isActive");
+    if(needsReconnect())
+    {
+        PEG_METHOD_EXIT();
+        return false;
+    }
+    else
+    {
+        PEG_METHOD_EXIT();
+        return true;
+    }
+}
+
+
 void HTTPConnection::handleInternalServerError(
     Uint32 respMsgIndex,
     Boolean isComplete)