зеркало из https://github.com/mozilla/pjs.git
a=sdagley, r=dougt. set the min ftp thread count to 1 (from 4). now we only fire up 1 thread initially. Also set the stack size to default machine stack size. 22033
This commit is contained in:
Родитель
3683cd5252
Коммит
b9beb6cdeb
|
@ -90,8 +90,9 @@ nsFtpProtocolHandler::Init() {
|
|||
nsresult rv;
|
||||
NS_NEWXPCOM(mRootConnectionList, nsHashtable);
|
||||
if (!mRootConnectionList) return NS_ERROR_OUT_OF_MEMORY;
|
||||
rv = NS_NewThreadPool(getter_AddRefs(mPool), NS_FTP_CONNECTION_COUNT,
|
||||
NS_FTP_CONNECTION_COUNT,
|
||||
rv = NS_NewThreadPool(getter_AddRefs(mPool),
|
||||
NS_FTP_MIN_CONNECTION_COUNT,
|
||||
NS_FTP_MAX_CONNECTION_COUNT,
|
||||
NS_FTP_CONNECTION_STACK_SIZE);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
|
|
|
@ -58,7 +58,8 @@ protected:
|
|||
nsCOMPtr<nsIThreadPool> mPool; // thread pool for FTP connections
|
||||
};
|
||||
|
||||
#define NS_FTP_CONNECTION_COUNT 4
|
||||
#define NS_FTP_CONNECTION_STACK_SIZE (64 * 1024)
|
||||
#define NS_FTP_MIN_CONNECTION_COUNT 1
|
||||
#define NS_FTP_MAX_CONNECTION_COUNT 4
|
||||
#define NS_FTP_CONNECTION_STACK_SIZE 0
|
||||
|
||||
#endif /* nsFtpProtocolHandler_h___ */
|
||||
|
|
Загрузка…
Ссылка в новой задаче