applayerpluginsandutils/httpprotocolplugins/httpclient/chttpconnectionmanager.cpp
branchRCL_3
changeset 3 5ee1d9ce5878
parent 0 b16258d2340f
child 7 337070b4fa18
child 12 88a7990e456a
--- a/applayerpluginsandutils/httpprotocolplugins/httpclient/chttpconnectionmanager.cpp	Tue Feb 02 01:09:52 2010 +0200
+++ b/applayerpluginsandutils/httpprotocolplugins/httpclient/chttpconnectionmanager.cpp	Fri Feb 19 23:50:57 2010 +0200
@@ -1348,10 +1348,10 @@
 		}
 	}
 
-void CHttpConnectionManager::InsertPipelineFailedHost(const TDesC8& aHost)
- 	{
- 	iPipelineFallback.InsertPipelineFailedHost(aHost);
- 	}
+void CHttpConnectionManager::AppendPipelineFailedHost(const TDesC8& aHost)
+	{
+ 	iPipelineFallback.AppendPipelineFailedHost(aHost);
+	}
 
 
 CHttpHostElement* CHttpHostElement::New(const TDesC8& aHost)
@@ -1441,6 +1441,26 @@
         }
     
     }
+	
+	void CHttpPipelineFallback::AppendPipelineFailedHost(const TDesC8& aHost)
+	{
+ 		// Already failed. no need to check further.
+     if(NeedPipelineFallback(aHost))
+         {
+         return;
+         }
+ 		
+ 		// Failure doesn't matter here.
+ 		HBufC8* host = aHost.Alloc();
+ 		if(host == NULL)
+ 			{
+ 			return;
+ 			}
+ 		
+ 		iPipelineFailedHosts.Append(host); // no error checking as failure does not matter
+ 																			 // we will keep going.
+ }
+