openwrt / openwrt/rpcd

rpcd fails with many (~5k) active connections

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
15
Forks
28
PR merge metrics
No merged PRs in 30d

Description

rpcd fails when i try to monitor active connections in luci. At the Moment of testing i had around ~5k active connections.

how to reproduce this:

  • have ~5000 active connections
  • navigate to <router ip>/cgi-bin/luci/admin/status/realtime/connections
  • see failure /usr/lib/lua/luci/dispatcher.lua:431: /etc/config/luci seems to be corrupt, unable to find section 'main'

what fixes luci again:

  • service rpcd restart

OpenWrt version: OpenWrt 22.03.4 r20123-38ccc47687
Architecture: ARMv8 Processor rev 4
Target Platform: mediatek/mt7622
Model: Linksys E8450 (UBI)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with about 5,000 active connections by opening the listed LuCI realtime connections URL on the specified OpenWrt setup. Start with /usr/lib/lua/luci/dispatcher.lua:431 and compare the failure before and after service rpcd restart. Done means the connections view no longer produces the reported corrupt-configuration error under that load.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.