Probable fix for HTTP ESock issues RCL_3
authorSebastian Brannstrom <sebastianb@symbian.org>
Sat, 30 Oct 2010 13:52:07 +0100
branchRCL_3
changeset 310 2e0299e13cbf
parent 309 d9f6395a50ea
child 311 606f4f6babf6
Probable fix for HTTP ESock issues
engine/src/ConnectionEngine.cpp
engine/src/HttpClient.cpp
--- a/engine/src/ConnectionEngine.cpp	Sat Oct 30 12:36:47 2010 +0100
+++ b/engine/src/ConnectionEngine.cpp	Sat Oct 30 13:52:07 2010 +0100
@@ -56,8 +56,8 @@
 
 void CConnectionEngine::RunL()
 	{
-	DP1("CConnectionEngine::RunL BEGIN, iStatus.Int()=%d", iStatus.Int());
-	if ( iStatus.Int() == KErrNone && iMobility == NULL)
+	DP2("CConnectionEngine::RunL BEGIN, iStatus.Int()=%d, iConnectionState=%d", iStatus.Int(), iConnectionState);
+	if ( iStatus.Int() == KErrNone && iMobility == NULL && iConnectionState == EConnected)
 		{
 		TRAPD(err, iMobility = CActiveCommsMobilityApiExt::NewL( iConnection, *this ));
 		
--- a/engine/src/HttpClient.cpp	Sat Oct 30 12:36:47 2010 +0100
+++ b/engine/src/HttpClient.cpp	Sat Oct 30 13:52:07 2010 +0100
@@ -122,22 +122,16 @@
 		if( aErrorCode == KErrNone)
 			{
 			TRAP_IGNORE(iSession.OpenL());
-			DP("    one");
 			RHTTPConnectionInfo connInfo = iSession.ConnectionInfo();
-			DP("    one point five");
 			RStringPool pool = iSession.StringPool();
 			// Attach to socket server
-			DP("    two");
 			connInfo.SetPropertyL(pool.StringF(HTTP::EHttpSocketServ, RHTTPSession::GetTable()), THTTPHdrVal(iPodcastModel.ConnectionEngine().SockServ().Handle()));
 			// Attach to connection
-			DP("    three");
 			TInt connPtr = REINTERPRET_CAST(TInt, &iPodcastModel.ConnectionEngine().Connection());
 			connInfo.SetPropertyL(pool.StringF(HTTP::EHttpSocketConnection, RHTTPSession::GetTable()), THTTPHdrVal(connPtr));
-			DP("    four");
 
 			iPodcastModel.SetProxyUsageIfNeededL(iSession);
 			DoGetAfterConnectL();
-			//iWaitingForGet = EFalse; // set to true by DoGetAfterConnectL
 			}
 		else
 			{