startSendRtpPassive接口新增连接超时参数:close_delay_ms

This commit is contained in:
xiongziliang
2023-02-17 23:02:09 +08:00
parent 8f0ba6988b
commit 5bcfba1da4
4 changed files with 12 additions and 3 deletions

View File

@@ -1238,6 +1238,8 @@ void installWebApi() {
args.use_ps = allArgs["use_ps"].empty() ? true : allArgs["use_ps"].as<bool>();
args.only_audio = allArgs["only_audio"].as<bool>();
args.recv_stream_id = allArgs["recv_stream_id"];
//tcp被动服务器等待链接超时时间
args.tcp_passive_close_delay_ms = allArgs["close_delay_ms"];
TraceL << "startSendRtpPassive, pt " << int(args.pt) << " ps " << args.use_ps << " audio " << args.only_audio;
src->getOwnerPoller()->async([=]() mutable {