mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-15 12:35:58 +08:00
完善http超时管理
This commit is contained in:
@@ -57,11 +57,11 @@ void HttpRequester::onDisconnect(const SockException &ex){
|
||||
}
|
||||
}
|
||||
|
||||
void HttpRequester::startRequester(const string &url,const HttpRequesterResult &onResult , uint32_t timeOutSecond){
|
||||
void HttpRequester::startRequester(const string &url,const HttpRequesterResult &onResult , float timeOutSecond){
|
||||
_onResult = onResult;
|
||||
_resTicker.resetTime();
|
||||
_timeOutSecond = timeOutSecond;
|
||||
sendRequest(url);
|
||||
sendRequest(url,timeOutSecond);
|
||||
}
|
||||
|
||||
void HttpRequester::onManager(){
|
||||
|
||||
Reference in New Issue
Block a user