void set_backlog_size(size_t new_size);
// You should hold the owning Server's <mutex>, since it calls add_data_raw().
+ // Sets unavailable to false.
void set_header(const std::string &new_http_header, const std::string &new_stream_header);
+ void set_unavailable() {
+ unavailable = true;
+ }
+
// Mutex protecting <queued_data> and <queued_data_last_starting_point>.
// Note that if you want to hold both this and the owning server's
// <mutex> you will need to take <mutex> before this one.
std::string url;
+ // If true, the backend is not completely connected, and thus, we cannot serve
+ // clients (except for historic HLS fragments).
+ bool unavailable = true;
+
// The HTTP response header, without the trailing double newline.
std::string http_header;