606 return KErrNone; |
606 return KErrNone; |
607 } |
607 } |
608 |
608 |
609 TInt CSenHttpChannelTransportPlugin::ResetHttpChannelByIapIdL(TUint32 aIapId) |
609 TInt CSenHttpChannelTransportPlugin::ResetHttpChannelByIapIdL(TUint32 aIapId) |
610 { |
610 { |
|
611 TLSLOG_L(KSenHttpChannelObserverLogChannelBase,KMinLogLevel,"CSenHttpChannelTransportPlugin::ResetHttpChannelByIapIdL()"); |
611 TUint32 effectiveIapId(KErrNone); |
612 TUint32 effectiveIapId(KErrNone); |
612 TBool explicitIapIdDefined(EFalse); |
613 TBool explicitIapIdDefined(EFalse); |
613 if(iHttpChannel) |
614 if(iHttpChannel) |
614 { |
615 { |
615 explicitIapIdDefined = iHttpChannel->EffectiveIapId(effectiveIapId); |
616 explicitIapIdDefined = iHttpChannel->EffectiveIapId(effectiveIapId); |
616 } |
617 } |
617 |
618 |
618 TInt retVal(KErrNone); |
619 TInt retVal(KErrNone); |
619 if(!explicitIapIdDefined || explicitIapIdDefined && effectiveIapId != aIapId) |
620 TLSLOG_FORMAT((KSenHttpChannelObserverLogChannelBase,KMinLogLevel, _L8("- explicitIapIdDefined[%d], effectiveIapId[%d], aIapId[%d]"), explicitIapIdDefined, effectiveIapId, aIapId)); |
|
621 if(!explicitIapIdDefined || (explicitIapIdDefined && (effectiveIapId != aIapId) )) |
620 { |
622 { |
621 TLSLOG_L(KSenHttpChannelObserverLogChannelBase,KMinLogLevel,"CSenHttpChannelTransportPlugin::ResetHttpChannel():"); |
623 TLSLOG_L(KSenHttpChannelObserverLogChannelBase,KMinLogLevel,"CSenHttpChannelTransportPlugin::ResetHttpChannel():"); |
622 |
624 |
623 delete iHttpChannel; |
625 delete iHttpChannel; |
624 iHttpChannel = NULL; |
626 iHttpChannel = NULL; |
625 delete iRequester; |
627 delete iRequester; |
626 iRequester = NULL; |
628 iRequester = NULL; |
627 TLSLOG_FORMAT((KSenHttpChannelObserverLogChannelBase,KNormalLogLevel, _L8("- New IAP ID: %d"), aIapId)); |
629 TLSLOG_FORMAT((KSenHttpChannelObserverLogChannelBase,KMinLogLevel, _L8("- New IAP ID: %d"), aIapId)); |
628 CSenHttpChannel* pHttpChannel = CSenHttpChannelImpl::NewL(iServiceManager, aIapId); |
630 CSenHttpChannel* pHttpChannel = CSenHttpChannelImpl::NewL(iServiceManager, aIapId); |
629 |
631 |
630 CleanupStack::PushL(pHttpChannel); |
632 CleanupStack::PushL(pHttpChannel); |
631 |
633 |
632 CSenHttpSyncRequester* pRequester = CSenHttpSyncRequester::NewL(pHttpChannel, this); |
634 CSenHttpSyncRequester* pRequester = CSenHttpSyncRequester::NewL(pHttpChannel, this); |