baidu / baidu/sofa-pbrpc

当进程支持的fd配置较小时造成listenport 被关闭,并且不在尝试监听

Open
#208 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.1k
Forks
650
PR merge metrics
No merged PRs in 30d

Description

rpc_listener.h 中_is_closed(false)初始化为false
在调用start_listen时,可能没有监听成功,但是没有把状态设置为_is_closed=ture,
在RpcServerImpl::TimerMaintain中认为_listener->is_closed()为false,不再发起重连操作

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in rpc_listener.h and trace start_listen together with RpcServerImpl::TimerMaintain. Reproduce the low-file-descriptor case, verify the listener state reflects a failed listen, and confirm maintenance retries listening instead of leaving the listen port closed.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.