#include <assert.h>
+#include <fcntl.h>
#include <stdlib.h>
#include <sys/types.h>
}
}
+void ServerPool::set_unavailable(int stream_index)
+{
+ assert(stream_index >= 0 && stream_index < ssize_t(num_http_streams + udp_streams.size()));
+ if (stream_index < ssize_t(num_http_streams)) {
+ for (int i = 0; i < num_servers; ++i) {
+ servers[i].set_unavailable(stream_index);
+ }
+ }
+}
+
void ServerPool::add_gen204(const std::string &url, const std::string &allow_origin)
{
for (int i = 0; i < num_servers; ++i) {