Skip to content

Make exponential backoff parameters configurable in accept_loop #264

@coderabbitai

Description

@coderabbitai

Problem

The exponential backoff in accept_loop has hardcoded values (10ms initial delay → 1s max cap). This makes it difficult to tune the server's behaviour for different environments or use cases.

Suggested Solution

Consider making the initial delay and maximum cap configurable, or at minimum pull them out as named constants for better maintainability and documentation.

Context

Identified during code review of PR #262: #262
Comment: #262 (comment)
Issue: #264

Files Affected

  • src/server/runtime.rs

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions