# HG changeset patch # User Sebastian Brannstrom # Date 1288443127 -3600 # Node ID 2e0299e13cbf28700bd4d34af6de549a6ff68cc9 # Parent d9f6395a50eade0430e108c616b6410dee3879ab Probable fix for HTTP ESock issues diff -r d9f6395a50ea -r 2e0299e13cbf engine/src/ConnectionEngine.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 )); diff -r d9f6395a50ea -r 2e0299e13cbf engine/src/HttpClient.cpp --- 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 {