diff -r d39add9822e2 -r 5bfc169077b2 browserutilities/downloadmgr/DownloadMgrClntSrv/src/DownloadMgrClntSession.cpp --- a/browserutilities/downloadmgr/DownloadMgrClntSrv/src/DownloadMgrClntSession.cpp Tue Feb 02 00:56:45 2010 +0200 +++ b/browserutilities/downloadmgr/DownloadMgrClntSrv/src/DownloadMgrClntSession.cpp Fri Mar 19 09:52:28 2010 +0200 @@ -19,7 +19,7 @@ // INCLUDE FILES #include "DownloadMgrLogger.h" -#include +#include "DownloadMgrClient.h" #include "DownloadMgrServer.h" #include "DownloadMgrStart.h" #include "DownloadMgrDef.h" @@ -29,14 +29,13 @@ #include #include #include "DownloadMgrCRKeys.h" -#include -#include +#include +#include // CONSTANTS const TInt KHttpDownloadMgrObserverArrayGranularity = 4; const TInt KHttpDownloadMgrDefalutAttribsGranularity = 4; const TInt KDefaultMsgSlots = 16; -const TInt KNumOfSubSessions = 16; _LIT8( KHttpScheme, "http" ); _LIT8( KHttpsScheme, "https" ); @@ -600,11 +599,6 @@ CLOG_ENTERFN( "RHttpDownloadMgr::CreateDownloadL" ) - //Leave if the number of parallel downloads exceeds 16. - if(!IsNewDownloadPossible()){ - User::LeaveIfError(KErrServerBusy); - } - RHttpDownload* download = new (ELeave) RHttpDownload ( this ); CleanupStack::PushL( download ); CleanupClosePushL( *download ); @@ -845,22 +839,6 @@ } // --------------------------------------------------------- -// RHttpDownloadMgr::IsNewDownloadPossible() -// --------------------------------------------------------- - TBool RHttpDownloadMgr::IsNewDownloadPossible() -{ - TInt32 value(0); - TPckg pckg( value ); - if(KErrNone == SendReceive( EHttpDownMgrNumOfSubSessions, - TIpcArgs(&pckg ) )){ - if(value < KNumOfSubSessions){ - return ETrue; - } - } - return EFalse; -} - -// --------------------------------------------------------- // RHttpDownloadMgr::Disconnect // --------------------------------------------------------- //