-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When upgrading the http-proxy-middleware library I accidentally caused the app to create a new proxy server on every request (whether for the proxy or not), rather than just on startup. This led to a memory leak, and the Node process crashing. This change creates it once, and uses the express-async-handler to get around triggering the no-misused-promises linting rule. Refs #1636, chimurai/http-proxy-middleware#108 (comment), https://github.com/chimurai/http-proxy-middleware/tree/v3.0.0?tab=readme-ov-file#express-server-example, https://typescript-eslint.io/rules/no-misused-promises/
- Loading branch information
1 parent
37ca9bf
commit a61986a
Showing
3 changed files
with
44 additions
and
29 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters