Commit 8698661
ref(wsgi): Simplify file response bypass to not require uWSGI offload-threads check
Remove the _is_uwsgi_offload_threads_enabled() helper and the
associated uWSGI import. The broader condition — skip wrapping
whenever wsgi.file_wrapper is present and the response is file-like
(has fileno) — is sufficient and correct since uWSGI applies
file-handling optimizations beyond just offload-threads.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent e1b733b commit 8698661
File tree
2 files changed
+24
-59
lines changed- sentry_sdk/integrations
- tests/integrations/wsgi
2 files changed
+24
-59
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
150 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
155 | | - | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | 164 | | |
184 | 165 | | |
185 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
507 | 507 | | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
520 | 512 | | |
521 | 513 | | |
522 | | - | |
523 | | - | |
| 514 | + | |
| 515 | + | |
524 | 516 | | |
525 | 517 | | |
526 | 518 | | |
| |||
538 | 530 | | |
539 | 531 | | |
540 | 532 | | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
561 | 545 | | |
562 | 546 | | |
563 | 547 | | |
| |||
0 commit comments