X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=httpinput.cpp;h=715e31c4a162f8d9ce168969901ae3ca4253a8c9;hb=e7ea72a8382981ab038460fb32341d0c25c77c8a;hp=bac6b05cc7ab8e416c097f61d36555e8f031741e;hpb=fa431bfab848624c2490a1134e084e6c1dd0dbfa;p=cubemap diff --git a/httpinput.cpp b/httpinput.cpp index bac6b05..715e31c 100644 --- a/httpinput.cpp +++ b/httpinput.cpp @@ -167,6 +167,7 @@ int HTTPInput::lookup_and_connect(const string &host, const string &port) if (ioctl(sock, FIONBIO, &one) == -1) { log_perror("ioctl(FIONBIO)"); safe_close(sock); + freeaddrinfo(base_ai); return -1; } @@ -339,7 +340,8 @@ void HTTPInput::do_work() pending_data.clear(); has_metacube_header = false; for (int stream_index : stream_indices) { - servers->set_header(stream_index, "", ""); + // Don't zero out the header; it might still be of use to HLS clients. + servers->set_unavailable(stream_index); } {