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:
valeski%netscape.com 1999-12-21 22:25:37 +00:00
Родитель 3683cd5252
Коммит b9beb6cdeb
2 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -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___ */