Commit dfa0ce9
committed
[bitreq] Set a default max-response limit of 1 GiB
Because its very easy to (mis-)use the API and forget to set a
response size limit, we really should have a default one. Sadly,
its also quite hard to pick a reasonable default here. Rather than
being conservative, we pick 1 GiB and hope that this is enough to
avoid an OOM, even though its still quite huge, and almost
certainly is larger than what people will use `bitreq` for.1 parent 704fe64 commit dfa0ce9
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
264 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
265 | 269 | | |
266 | 270 | | |
267 | 271 | | |
| |||
0 commit comments