Skip to content

Raft : tolerate malformed port and max_body_bytes in config - #79376

Closed
aydnOktay wants to merge 1 commit into
NousResearch:mainfrom
aydnOktay:fix/raft-config-int-guard
Closed

Raft : tolerate malformed port and max_body_bytes in config#79376
aydnOktay wants to merge 1 commit into
NousResearch:mainfrom
aydnOktay:fix/raft-config-int-guard

Conversation

@aydnOktay

Copy link
Copy Markdown
Contributor

Summary

  • RaftAdapter.__init__ used unguarded int() on extra.port and extra.max_body_bytes.
  • Malformed config (port: "abc", max_body_bytes: "nope") raises ValueError during construction and takes the platform down.
  • Add _coerce_int() with defaults — same posture as Teams _coerce_port and the IRC/A2A port guard family.

Unguarded int() on extra.port / extra.max_body_bytes ValueErrors during
RaftAdapter construction and takes the platform down. Add _coerce_int with
defaults, mirroring Teams _coerce_port and the IRC/A2A port guard family.

Co-authored-by: Cursor <cursoragent@cursor.com>
@alt-glitch alt-glitch added type/bug Something isn't working comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have labels Aug 5, 2026
@aydnOktay

Copy link
Copy Markdown
Contributor Author

Closing to concentrate review on a single linked product bug: #89979.

@aydnOktay aydnOktay closed this Aug 19, 2026
@aydnOktay

Copy link
Copy Markdown
Contributor Author

Closing to concentrate review on a single linked product bug: #89979.

1 similar comment
@aydnOktay

Copy link
Copy Markdown
Contributor Author

Closing to concentrate review on a single linked product bug: #89979.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants