Skip to content

IPC client timeout#11

Open
lploom wants to merge 5 commits intomainfrom
ipc-client
Open

IPC client timeout#11
lploom wants to merge 5 commits intomainfrom
ipc-client

Conversation

@lploom
Copy link
Copy Markdown
Collaborator

@lploom lploom commented Apr 13, 2026

No description provided.

@lploom lploom requested a review from MastaP April 13, 2026 13:41
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request enhances the finality gadget documentation, refactors the T1 timer management using context cancellation for improved reliability, and introduces a comprehensive test for node startup and recovery equivalence. Additionally, the PoW IPC client was refactored to include HTTP timeouts, request IDs, and response size limits. Feedback identifies a potential regression caused by the removal of a JSON parsing workaround for the PoW node and suggests a more robust implementation for response size limiting to explicitly detect and handle truncated data.

Comment thread pow/ipc_client.go
Comment thread pow/ipc_client.go Outdated
Comment thread pow/ipc_client.go
return fmt.Errorf("failed to decode response: %w. Response body: %s", err, string(bodyBytes))
}

// TODO PoW node always returns ID=0
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.

remove todo or link an issue

@MastaP MastaP assigned MastaP and b3y0urs3lf and unassigned MastaP Apr 14, 2026
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.

IPC client has no timeout — hung PoW node blocks finality gadget indefinitely

3 participants