mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
修复http客户端设置tcp连接超时时间单位错误的问题
须毫秒转换为秒
This commit is contained in:
parent
433ecb1c5c
commit
aa5343effa
@ -80,7 +80,7 @@ void HttpClient::sendRequest(const string &url) {
|
||||
}
|
||||
|
||||
if (!alive() || host_changed) {
|
||||
startConnect(host, port, _wait_header_ms);
|
||||
startConnect(host, port, _wait_header_ms / 1000.0f);
|
||||
} else {
|
||||
SockException ex;
|
||||
onConnect_l(ex);
|
||||
|
Loading…
Reference in New Issue
Block a user