applayerpluginsandutils/httpprotocolplugins/httpclient/chttpconnectionmanager.cpp
branchRCL_3
changeset 3 5ee1d9ce5878
parent 0 b16258d2340f
child 5 337070b4fa18
equal deleted inserted replaced
0:b16258d2340f 3:5ee1d9ce5878
  1346 			iInputStream->StartReceieveTimer(timeoutValue);
  1346 			iInputStream->StartReceieveTimer(timeoutValue);
  1347 			}
  1347 			}
  1348 		}
  1348 		}
  1349 	}
  1349 	}
  1350 
  1350 
  1351 void CHttpConnectionManager::InsertPipelineFailedHost(const TDesC8& aHost)
  1351 void CHttpConnectionManager::AppendPipelineFailedHost(const TDesC8& aHost)
  1352  	{
  1352 	{
  1353  	iPipelineFallback.InsertPipelineFailedHost(aHost);
  1353  	iPipelineFallback.AppendPipelineFailedHost(aHost);
  1354  	}
  1354 	}
  1355 
  1355 
  1356 
  1356 
  1357 CHttpHostElement* CHttpHostElement::New(const TDesC8& aHost)
  1357 CHttpHostElement* CHttpHostElement::New(const TDesC8& aHost)
  1358     {
  1358     {
  1359     CHttpHostElement* self = new CHttpHostElement;
  1359     CHttpHostElement* self = new CHttpHostElement;
  1439         {        
  1439         {        
  1440         iProbablePipelineFailedHosts.AddLast(*element);
  1440         iProbablePipelineFailedHosts.AddLast(*element);
  1441         }
  1441         }
  1442     
  1442     
  1443     }
  1443     }
  1444 
  1444 	
  1445 
  1445 	void CHttpPipelineFallback::AppendPipelineFailedHost(const TDesC8& aHost)
  1446 
  1446 	{
  1447 
  1447  		// Already failed. no need to check further.
  1448 	
  1448      if(NeedPipelineFallback(aHost))
  1449 
  1449          {
       
  1450          return;
       
  1451          }
       
  1452  		
       
  1453  		// Failure doesn't matter here.
       
  1454  		HBufC8* host = aHost.Alloc();
       
  1455  		if(host == NULL)
       
  1456  			{
       
  1457  			return;
       
  1458  			}
       
  1459  		
       
  1460  		iPipelineFailedHosts.Append(host); // no error checking as failure does not matter
       
  1461  																			 // we will keep going.
       
  1462  }
       
  1463 
       
  1464 
       
  1465 
       
  1466 
       
  1467 
       
  1468 	
       
  1469