MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / error_response

Function error_response

app/server/http.cpp:311–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 std::chrono::steady_clock::now() - started_)
310 .count();
311 if (elapsed >= limits_.total_timeout_ms) {
312 throw std::runtime_error("live request body exceeded its total deadline");
313 }
314 }
315
316 // Returns false on a clean half-close; throws when a bound is exceeded, so a
317 // stalled client surfaces as a stream error rather than a silent truncation
318 // that would look like a legitimate end of audio.

Callers 2

handleMethod · 0.85
handle_clientFunction · 0.85

Calls 3

json_responseFunction · 0.85
json_quoteFunction · 0.70
stringFunction · 0.50

Tested by

no test coverage detected