Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defer marking request as completed until response is complete #694

Draft
wants to merge 1 commit into
base: mainline
Choose a base branch
from

Conversation

annervisser
Copy link

Issue #, if available: #693

Description of changes:

Defer marking request as completed until response is complete

Marking the request as complete before the response is finished causes issues if the request is still being read to create the response.

Checklist

  • Tests have been added and are passing
  • Documentation has been updated

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Marking the request as complete before the response is finished causes issues if the request is still being read to create the response.

Fixes CodeGenieApp#693
@annervisser
Copy link
Author

This fixes the issue when using async code in middleware, but waitForStreamComplete breaks when no-one has written to the response (test GET missing route breaks)

@annervisser annervisser marked this pull request as draft February 3, 2025 13:11
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.

1 participant