Skip to content

Make file descriptor limit adjustment portable - #46931

Merged
RyanTheOptimist merged 2 commits into
envoyproxy:mainfrom
yanavlasov:raise-file-limits
Aug 26, 2026
Merged

Make file descriptor limit adjustment portable#46931
RyanTheOptimist merged 2 commits into
envoyproxy:mainfrom
yanavlasov:raise-file-limits

Conversation

@yanavlasov

@yanavlasov yanavlasov commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

The setrlimit/getrlimit methods are not portable to Windows. Change API to be file limit specific and hide resource limit business in the platform specific code.

Coverage was lowered because set/getrlimit calls are no longer mocked and adding tests cases for then these calls fail is not feasible. This is not critical in the context of raising file descriptor soft limit.

Risk Level: none
Testing: unit tests
Docs Changes: no
Release Notes: no
Platform Specific Features: windows specific change.

Signed-off-by: Yan Avlasov <yavlasov@google.com>
Signed-off-by: Yan Avlasov <yavlasov@google.com>
@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/coverage-shephards: FYI only for changes made to (test/coverage.yaml).
envoyproxy/coverage-shephards assignee is @RyanTheOptimist

🐱

Caused by: #46931 was synchronize by yanavlasov.

see: more, trace.

@RyanTheOptimist RyanTheOptimist left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@RyanTheOptimist
RyanTheOptimist merged commit 3fea068 into envoyproxy:main Aug 26, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants