mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 20:15:58 +08:00
修复http客户端设置tcp连接超时时间单位错误的问题
须毫秒转换为秒
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user