当max_connections 调小,对应闲置的tcp链接并没有被释放
- Dominant language
- C++
- Stars
- 10.2k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
`
CoTask ServiceGroup::checkConnectionsRegularly() {
while (true) {
XLOGF(DBG9, "server@{} check connections", fmt::ptr(this));
ioWorker().checkConnections(Address{0, 0, Address::RDMA}, config_.connection_expiration_time());
co_await folly::coro::sleep(config_.check_connections_interval().asMs());
}
}
`
代码中只针对RDMA进行了链接释放,并没有对TCP 链接进行释放。而实现上,RDMA是需要TCP来传递device信息
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at ServiceGroup::checkConnectionsRegularly() and follow ioWorker().checkConnections(), comparing the RDMA path with the TCP connections it uses to transfer device information. Confirm how max_connections changes are handled for idle links, then verify that idle TCP connections are released after the limit is reduced.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- distributed-systems, networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100