// Set/Reset the timer to fire after the preconnect times out. Add an extra
// delay to make sure the preconnect has expired if it wasn't used.
timer_.Start(FROM_HERE,
base::Seconds(base::GetFieldTrialParamByFeatureAsInt(
net::features::kNetUnusedIdleSocketTimeout,
"unused_idle_socket_timeout_seconds", 60)) +
retry_delay,
base::BindOnce(&SearchEnginePreconnector::PreconnectDSE,
base::Unretained(this)));
chromium 定时器之 socket空闲定时器
最新推荐文章于 2024-07-13 21:27:21 发布