Skip to main content

MAX_ERROR_BODY

Constant MAX_ERROR_BODY 

Source
const MAX_ERROR_BODY: usize = 512;
Expand description

How much of a non-success response body RelayCrawlError::Refused keeps: a relay answering with a large page must not flood the log this failure is reported to.

How much is read to get it is didbot_http::MAX_JSON_BODY, the bound this workspace holds any body from a server it does not operate to. Past it the message says the body went unread, which a relay answering an endless error page earns.