Fix >2gb streamed HTTP responses

This commit is contained in:
Alex Hultman
2020-07-29 08:41:53 +02:00
parent 0ee723a55a
commit f2198ccfac
4 changed files with 46 additions and 11 deletions
+2 -2
View File
@@ -43,11 +43,11 @@ private:
};
/* Per socket event handlers */
fu2::unique_function<bool(int)> onWritable;
fu2::unique_function<bool(size_t)> onWritable;
fu2::unique_function<void()> onAborted;
fu2::unique_function<void(std::string_view, bool)> inStream; // onData
/* Outgoing offset */
int offset = 0;
size_t offset = 0;
/* Current state (content-length sent, status sent, write called, etc */
int state = 0;