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
@@ -490,6 +490,9 @@ public:
void onData(MoveOnlyFunction<void(std::string_view, bool)> &&handler) {
HttpResponseData<SSL> *data = getHttpResponseData();
data->inStream = std::move(handler);
/* Always reset this counter here */
data->received_bytes_per_timeout = 0;
}
};