mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine SrsTcpClient timeout in time unit
This commit is contained in:
parent
e9770933a6
commit
61afca7160
10 changed files with 46 additions and 23 deletions
|
@ -65,7 +65,7 @@ srs_error_t SrsBasicRtmpClient::connect()
|
|||
|
||||
close();
|
||||
|
||||
transport = new SrsTcpClient(req->host, req->port, connect_timeout);
|
||||
transport = new SrsTcpClient(req->host, req->port, srs_utime_t(connect_timeout * SRS_UTIME_MILLISECONDS));
|
||||
client = new SrsRtmpClient(transport);
|
||||
kbps->set_io(transport, transport);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue