Commit 0cf51dd
committed
Extract finish_body() method on HTTP parser
Refactor the body-drain logic out of Parser.__next__() into a public
finish_body() method. No behavior change — __next__() calls it in the
same place. This makes the drain available for future use (e.g. explicit
keepalive body discard once thread pool exhaustion protection is added).
Ported from gunicorn b43dc6d.1 parent e7ddd1a commit 0cf51dd
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
45 | 56 | | |
46 | 57 | | |
47 | 58 | | |
48 | 59 | | |
49 | 60 | | |
50 | 61 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 62 | + | |
55 | 63 | | |
56 | 64 | | |
57 | 65 | | |
| |||
0 commit comments