Skip to content

fix: fixed post writer error in long task tool#479

Closed
bingo787 wants to merge 3 commits intomodelcontextprotocol:mainfrom
bingo787:main
Closed

fix: fixed post writer error in long task tool#479
bingo787 wants to merge 3 commits intomodelcontextprotocol:mainfrom
bingo787:main

Conversation

@bingo787
Copy link
Copy Markdown

@bingo787 bingo787 commented Apr 10, 2025

Motivation and Context

In tasks with a long duration, a post write error will occur. The reason is that the connection of the MCP has been disconnected. The timeout set in the application did not take effect. This is a bug.

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@hojjatabdollahi
Copy link
Copy Markdown

You're passing the timeout to model_dump() instead of post()

@ihrpr ihrpr closed this Apr 29, 2025
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.

3 participants