修复http客户端设置tcp连接超时时间单位错误的问题

须毫秒转换为秒
This commit is contained in:
xia-chu 2023-11-07 23:15:16 +08:00
parent 433ecb1c5c
commit aa5343effa

View File

@ -80,7 +80,7 @@ void HttpClient::sendRequest(const string &url) {
} }
if (!alive() || host_changed) { if (!alive() || host_changed) {
startConnect(host, port, _wait_header_ms); startConnect(host, port, _wait_header_ms / 1000.0f);
} else { } else {
SockException ex; SockException ex;
onConnect_l(ex); onConnect_l(ex);