]> git.sesse.net Git - cubemap/blobdiff - httpinput.h
Suppress HTTP input errors if there are too many of them; reduces log spam a fair...
[cubemap] / httpinput.h
index 823204d5b1cff4c264d348b70a731a93e29f1949..e7c447af52eb310da0d18b5a83cbc7272dfd5933 100644 (file)
@@ -94,6 +94,17 @@ private:
 
        // The current statistics for this connection. Protected by <stats_mutex>.
        InputStats stats;
+
+       // Number of (started) connection attempts since last data byte was successfully read.
+       unsigned num_connection_attempts;
+
+       // If set, don't log anything related to connections.
+       // (Only set if we've had enough unsuccessful connection attempts.)
+       bool suppress_logging;
+
+       // Last time we made a connection with logging enabled.
+       // (Initially at some point before the epoch.)
+       timespec last_verbose_connection;
 };
 
 #endif  // !defined(_HTTPINPUT_H)