bool HttpRequestManager::StopRequest(unsigned long requestId, bool bWait) {
	FileLog("httprequest", "HttpRequestManager::StopRequest( requestId : %lu, bWait : %s )", requestId, bWait?"true":"false");

	bool bFlag = false;

	HttpRequest *request = NULL;
	mKMutex.lock();
	HttpRequestMap::iterator itr = mHttpRequestMap.find(requestId);
	if( itr != mHttpRequestMap.end() ) {

//		IHttpRequestManagerCallbackMap::iterator itr2 = mIHttpRequestManagerCallbackMap.find(requestId);
//		if( itr2 != mIHttpRequestManagerCallbackMap.end() ) {
//			mIHttpRequestManagerCallbackMap.erase(itr2);
//		}

		request = itr->second;
		request->StopRequest();
//		mHttpRequestMap.erase(itr);

		bFlag = true;
	}
	mKMutex.unlock();

//	if( request != NULL ) {
//		request->StopRequest(bWait);
//		delete request;
//	}

	return bFlag;
}
void HttpRequestManager::StopAllRequest() {
	FileLog("httprequest", "HttpRequestManager::StopAllRequest()");

	HttpRequest *request = NULL;
	mKMutex.lock();
	for(HttpRequestMap::iterator itr = mHttpRequestMap.begin(); itr != mHttpRequestMap.end(); itr++) {
		request = itr->second;

		if( request != NULL ) {
			request->StopRequest();
		}
	}
	mKMutex.unlock();
}