Skip to content

[fel] Add configurable ping interval#147

Merged
CodeCasterX merged 1 commit intoModelEngine-Group:3.5.xfrom
CodeCasterX:fel-enhancement-tool
May 29, 2025
Merged

[fel] Add configurable ping interval#147
CodeCasterX merged 1 commit intoModelEngine-Group:3.5.xfrom
CodeCasterX:fel-enhancement-tool

Conversation

@CodeCasterX
Copy link
Member

  • Introduced configurable ping interval via constructor and configuration (application.yml) with a fallback default value (15,000 ms).
  • Moved ping scheduler creation to after initialization to ensure valid session state before sending pings.
  • Added parameter validation in DefaultMcpClient constructor using notNull and notBlank checks for better failure visibility.
  • Propagated ping interval configuration through DefaultMcpClientFactory using @value injection.
  • Improved testability and lifecycle management by decoupling scheduler setup from constructor logic.

This change increases flexibility and robustness of the MCP client, especially in different deployment and test environments.

- Introduced configurable ping interval via constructor and configuration (application.yml) with a fallback default value (15,000 ms).
- Moved ping scheduler creation to after initialization to ensure valid session state before sending pings.
- Added parameter validation in DefaultMcpClient constructor using notNull and notBlank checks for better failure visibility.
- Propagated ping interval configuration through DefaultMcpClientFactory using @value injection.
- Improved testability and lifecycle management by decoupling scheduler setup from constructor logic.

This change increases flexibility and robustness of the MCP client, especially in different deployment and test environments.
@CodeCasterX CodeCasterX added this to the 3.5.0 milestone May 29, 2025
@CodeCasterX CodeCasterX requested a review from loveTsong May 29, 2025 03:31
@CodeCasterX CodeCasterX self-assigned this May 29, 2025
@CodeCasterX CodeCasterX added the type: enhancement A general enhancement label May 29, 2025
@CodeCasterX CodeCasterX added this to Nova May 29, 2025
@CodeCasterX CodeCasterX added the in: fel Issues in FEL(FIT Expression for LLM) modules label May 29, 2025
@CodeCasterX CodeCasterX force-pushed the fel-enhancement-tool branch from cf2ef5a to cd07c0d Compare May 29, 2025 06:37
@CodeCasterX CodeCasterX merged commit c46c726 into ModelEngine-Group:3.5.x May 29, 2025
1 of 3 checks passed
@github-project-automation github-project-automation bot moved this to Done in Nova May 29, 2025
Yager-42 pushed a commit to Yager-42/fit-framework that referenced this pull request Aug 16, 2025
- Introduced configurable ping interval via constructor and configuration (application.yml) with a fallback default value (15,000 ms).
- Moved ping scheduler creation to after initialization to ensure valid session state before sending pings.
- Added parameter validation in DefaultMcpClient constructor using notNull and notBlank checks for better failure visibility.
- Propagated ping interval configuration through DefaultMcpClientFactory using @value injection.
- Improved testability and lifecycle management by decoupling scheduler setup from constructor logic.

This change increases flexibility and robustness of the MCP client, especially in different deployment and test environments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: fel Issues in FEL(FIT Expression for LLM) modules type: enhancement A general enhancement

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant