mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 03:31:45 +08:00
HTTP: 重写http相关超时管理机制
This commit is contained in:
@@ -139,6 +139,7 @@ API_EXPORT void API_CALL mk_http_requester_set_cb(mk_http_requester ctx,on_mk_ht
|
||||
API_EXPORT void API_CALL mk_http_requester_start(mk_http_requester ctx,const char *url, float timeout_second){
|
||||
assert(ctx && url && url[0] && timeout_second > 0);
|
||||
HttpRequester::Ptr *obj = (HttpRequester::Ptr *)ctx;
|
||||
(*obj)->sendRequest(url,timeout_second);
|
||||
(*obj)->setCompleteTimeout(timeout_second * 1000);
|
||||
(*obj)->sendRequest(url);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user