fix(security): enforce total inbound body deadline - #783
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Current-head review at
This remains stacked on #776 and has no independent required Checks until the parent stack is reconciled. |
|
|
Root cause
The new #776 regression showed that
_read_jsononly applied a per-read socket timeout. A client that sent one byte before each idle timeout could keep the request open indefinitely.Fix
408and close the connection when the total budget expires.This is stacked on #776 and preserves its fixed-length framing contract without force-pushing the remote agent branch.
Verification
python -m compileall -q contextual_orchestratorruff checkon changed Python/testsgit diff --check