equal
deleted
inserted
replaced
224 __FLOG_1(_T8("-> Trans %d : response cancelled"), iProtTrans->Transaction().Id()); |
224 __FLOG_1(_T8("-> Trans %d : response cancelled"), iProtTrans->Transaction().Id()); |
225 |
225 |
226 iCancellingResponse = ETrue; |
226 iCancellingResponse = ETrue; |
227 RHTTPTransaction trans = iProtTrans->Transaction(); |
227 RHTTPTransaction trans = iProtTrans->Transaction(); |
228 RHTTPResponse response = trans.Response(); |
228 RHTTPResponse response = trans.Response(); |
229 |
229 if(iBodyParts.Count() > 0) |
|
230 iBodyParts.Remove(0); |
230 iMessageParser.Flush (); |
231 iMessageParser.Flush (); |
231 iMessageParser.Reset(); |
232 iMessageParser.Reset(); |
232 iCancellingResponse = EFalse; |
233 iCancellingResponse = EFalse; |
233 } |
234 } |
234 |
235 |
482 RStringF hostStr = stringPool.StringF(HTTP::EHost, RHTTPSession::GetTable()); |
483 RStringF hostStr = stringPool.StringF(HTTP::EHost, RHTTPSession::GetTable()); |
483 THTTPHdrVal hostVal; |
484 THTTPHdrVal hostVal; |
484 |
485 |
485 if( headReq.GetField(hostStr, 0, hostVal) == KErrNotFound ) |
486 if( headReq.GetField(hostStr, 0, hostVal) == KErrNotFound ) |
486 { |
487 { |
487 // No Host header - do not know which host to connect to. |
488 // No Host header |
488 User::Leave(KErrHttpGeneralHeaderMissingHost); |
489 User::Leave(KErrHttpGeneralHeaderMissingHost); |
489 } |
490 } |
490 |
491 |
491 __ASSERT_DEBUG( hostVal.Type() == THTTPHdrVal::KStrFVal, User::Invariant() ); |
492 __ASSERT_DEBUG( hostVal.Type() == THTTPHdrVal::KStrFVal, User::Invariant() ); |
492 |
493 |
493 CHttpClientTransaction& protTran = static_cast<CHttpClientTransaction&>(*iProtTrans); |
494 CHttpClientTransaction& protTran = static_cast<CHttpClientTransaction&>(*iProtTrans); |
494 CHttpConnectionManager* manager = protTran.ConnectionManager(); |
495 CHttpConnectionManager* manager = protTran.ConnectionManager(); |
495 #if defined (_DEBUG) && defined (_LOGGING) |
496 #if defined (_DEBUG) && defined (_LOGGING) |
496 __FLOG_0(_T8("Pipelining is disabled for WebLogic Server- \n")); |
497 __FLOG_0(_T8("Pipelining is disabled for WebLogic Server- \n")); |
497 #endif |
498 #endif |
498 manager->InsertPipelineFailedHost(hostVal.StrF().DesC()); |
499 manager->AppendPipelineFailedHost(hostVal.StrF().DesC()); |
499 } |
500 } |
500 } |
501 } |
501 |
502 |
502 CleanupStack::PopAndDestroy(&name); |
503 CleanupStack::PopAndDestroy(&name); |
503 |
504 |
657 |
658 |
658 iFlags |= EMessageComplete; |
659 iFlags |= EMessageComplete; |
659 |
660 |
660 if( !ConsumingResponse() ) |
661 if( !ConsumingResponse() ) |
661 { |
662 { |
662 iResponseObserver.ResponseComplete(aExcessData); |
663 if( iBodyParts.Count() == 0 ) |
|
664 iResponseObserver.ResponseComplete(aExcessData); |
663 |
665 |
664 if ( iCancellingResponse ) |
666 if ( iCancellingResponse ) |
665 { |
667 { |
666 return; |
668 return; |
667 } |
669 } |