Require 16kb/sec HTTP upload throughput or drop the uploader

This commit is contained in:
Alex Hultman
2022-09-25 15:48:00 +02:00
parent 021dfe1937
commit c77cae4635
3 changed files with 15 additions and 1 deletions
+3
View File
@@ -79,6 +79,9 @@ private:
/* Outgoing offset */
uintmax_t offset = 0;
/* Let's track number of bytes since last timeout reset in data handler */
unsigned int received_bytes_per_timeout = 0;
/* Current state (content-length sent, status sent, write called, etc */
int state = 0;