applayerpluginsandutils/httpprotocolplugins/httpclient/chttpconnectionmanager.cpp
--- a/applayerpluginsandutils/httpprotocolplugins/httpclient/chttpconnectionmanager.cpp Thu Aug 19 10:27:19 2010 +0300
+++ b/applayerpluginsandutils/httpprotocolplugins/httpclient/chttpconnectionmanager.cpp Tue Aug 31 15:44:10 2010 +0300
@@ -314,9 +314,7 @@
// 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);
+ iPendingResponses.Remove(responseIndex);
}
else if( responseIndex != KErrNotFound )
{
@@ -1283,16 +1281,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 );
}
}
}