Skip to content

fix: limit indexer response size#1185

Open
tmigone wants to merge 2 commits intomainfrom
tmigone/limit-indexer-response-size
Open

fix: limit indexer response size#1185
tmigone wants to merge 2 commits intomainfrom
tmigone/limit-indexer-response-size

Conversation

@tmigone
Copy link
Copy Markdown
Member

@tmigone tmigone commented Apr 23, 2026

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>
Copy link
Copy Markdown
Member

@Theodus Theodus left a comment

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

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