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

catchErrors middleware: Don't create responses for ThreadKilled errors #4112

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

akshaymankar
Copy link
Member

Also don't log anything. This happens when warp decides to reap a worker thread,
it could happen because the client has already closed the connection. Creating
responses and logging seems unnecessary.

https://wearezeta.atlassian.net/browse/WPB-7161

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

Also don't log anything. This happens when warp decides to reap a worker thread,
it could happen because the client has already closed the connection. Creating
responses and logging seems unnecessary.
@akshaymankar akshaymankar requested a review from pcapriotti June 26, 2024 12:58
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Jun 26, 2024
Copy link
Contributor

@pcapriotti pcapriotti left a comment

Choose a reason for hiding this comment

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

:shipit:

libs/wai-utilities/src/Network/Wai/Utilities/Server.hs Outdated Show resolved Hide resolved
Co-authored-by: Paolo Capriotti <paolo@capriotti.io>
@akshaymankar akshaymankar merged commit cdd6e0d into develop Jun 27, 2024
10 checks passed
@akshaymankar akshaymankar deleted the catch-errors-dont-threadkilled branch June 27, 2024 08:10
@echoes-hq echoes-hq bot added the echoes: unplanned Any work item that isn’t part of the product or technical roadmap. label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: unplanned Any work item that isn’t part of the product or technical roadmap. ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants