X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=httpinput.cpp;h=155e0b3988e484dfe966f7b7e92565909ca2b342;hp=5b74319d71f77645c99b45452b0a677298316901;hb=f0621e41fdb96ce1bd58e7561e0aa76345072ba3;hpb=a0fe013448d188b324c00383cfd91695d9d3d076 diff --git a/httpinput.cpp b/httpinput.cpp index 5b74319..155e0b3 100644 --- a/httpinput.cpp +++ b/httpinput.cpp @@ -49,11 +49,7 @@ extern ServerPool *servers; HTTPInput::HTTPInput(const string &url, Input::Encoding encoding) : state(NOT_CONNECTED), url(url), - encoding(encoding), - has_metacube_header(false), - sock(-1), - num_connection_attempts(0), - suppress_logging(false) + encoding(encoding) { pthread_mutex_init(&stats_mutex, nullptr); stats.url = url; @@ -62,9 +58,6 @@ HTTPInput::HTTPInput(const string &url, Input::Encoding encoding) stats.metadata_bytes_received = 0; stats.connect_time = -1; stats.latency_sec = HUGE_VAL; - - last_verbose_connection.tv_sec = -3600; - last_verbose_connection.tv_nsec = 0; } HTTPInput::HTTPInput(const InputProto &serialized) @@ -79,9 +72,7 @@ HTTPInput::HTTPInput(const InputProto &serialized) http_header(serialized.http_header()), stream_header(serialized.stream_header()), has_metacube_header(serialized.has_metacube_header()), - sock(serialized.sock()), - num_connection_attempts(0), - suppress_logging(false) + sock(serialized.sock()) { pending_data.resize(serialized.pending_data().size()); memcpy(&pending_data[0], serialized.pending_data().data(), serialized.pending_data().size());