Skip to content

fix: limit indexer response size - #1185

Merged
Theodus merged 2 commits into
mainfrom
tmigone/limit-indexer-response-size
May 28, 2026
Merged

fix: limit indexer response size#1185
Theodus merged 2 commits into
mainfrom
tmigone/limit-indexer-response-size

Conversation

@tmigone

@tmigone tmigone commented Apr 23, 2026

Copy link
Copy Markdown
Member

No description provided.

tmigone added 2 commits April 23, 2026 14:36
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>

@Theodus Theodus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Comment thread src/indexer_client.rs
let indexed_block = indexed_block.and_then(parse_graph_indexed_header);

// Fast-path rejection: check Content-Length header before reading body
let max_response_size = self.max_response_size;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This let binding seems unnecessary

@Theodus
Theodus merged commit b97563c into main May 28, 2026
2 checks passed
@Theodus
Theodus deleted the tmigone/limit-indexer-response-size branch May 28, 2026 18:33
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.

2 participants