-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PR #8507/c9d09f11 backport][3.10] Remove blocking IO for static reso…
…urces and refactor exception handling (#8521) Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) Co-authored-by: J. Nick Koston <[email protected]> Co-authored-by: Steve Repsher <[email protected]>
- Loading branch information
Showing
3 changed files
with
106 additions
and
54 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Removed blocking I/O in the event loop for static resources and refactored | ||
exception handling -- by :user:`steverep`. | ||
|
||
File system calls when handling requests for static routes were moved to a | ||
separate thread to potentially improve performance. Exception handling | ||
was tightened in order to only return 403 Forbidden or 404 Not Found responses | ||
for expected scenarios; 500 Internal Server Error would be returned for any | ||
unknown errors. |
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