diff -r a0da872af3fa -r c59bddbfd7b9 applayerpluginsandutils/httpprotocolplugins/httpclient/chttpconnectionmanager.cpp --- a/applayerpluginsandutils/httpprotocolplugins/httpclient/chttpconnectionmanager.cpp Wed Sep 01 12:21:21 2010 +0100 +++ b/applayerpluginsandutils/httpprotocolplugins/httpclient/chttpconnectionmanager.cpp Wed Oct 13 15:09:28 2010 +0300 @@ -314,9 +314,9 @@ // The request has not been made - just need to remove the request and // response objects from the pending queues. iPendingRequests.Remove(requestIndex); - - if (KErrNotFound != responseIndex) - iPendingResponses.Remove(responseIndex); + + if (KErrNotFound != responseIndex) + iPendingResponses.Remove(responseIndex); } else if( responseIndex != KErrNotFound ) { @@ -1283,16 +1283,13 @@ TPtrC8 data; __FLOG_0(_T8("!! doing an immediate socket read")); TInt ret = iInputStream->ImmediateRead ( data ); - if (ret) //we have some data read..so parse it - { - responseCompleted = iCurrentResponse->CompleteResponse ( data ); - } if ( ( iPendingResponses.Count() == 0 ) || ret <= KErrNone ) { __FLOG_0(_T8("!! Breaking from the loop")); // no further data is expected or there is a socket error break; } + responseCompleted = iCurrentResponse->CompleteResponse ( data ); } } }