| 309 | throw std::runtime_error("live request body exceeded its maximum size"); |
| 310 | } |
| 311 | } |
| 312 | |
| 313 | // Enforced at every point where the body advances, not only before a receive: |
| 314 | // checking it in receive_more() alone lets an already-buffered tail — the rest |
| 315 | // of a large chunk, trailers, the terminating chunk — be consumed after the |
| 316 | // deadline has passed, which is not what "deadline" means to a caller reasoning |
| 317 | // about how long the model can be held. |
| 318 | void require_within_deadline() const { |
no test coverage detected