mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-15 12:35:58 +08:00
支持Http multipart/form-data 文件上传
优化http客户端超时逻辑 去除rtmp/rtsp代理时间戳覆盖逻辑
This commit is contained in:
@@ -59,18 +59,9 @@ void HttpRequester::onDisconnect(const SockException &ex){
|
||||
|
||||
void HttpRequester::startRequester(const string &url,const HttpRequesterResult &onResult , float timeOutSecond){
|
||||
_onResult = onResult;
|
||||
_resTicker.resetTime();
|
||||
_timeOutSecond = timeOutSecond;
|
||||
sendRequest(url,timeOutSecond);
|
||||
}
|
||||
|
||||
void HttpRequester::onManager(){
|
||||
if(_onResult && _resTicker.elapsedTime() > _timeOutSecond * 1000){
|
||||
//超时
|
||||
onDisconnect(SockException(Err_timeout,"wait http response timeout"));
|
||||
shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}//namespace Http
|
||||
|
||||
Reference in New Issue
Block a user