Support responses with no specified length

This commit is contained in:
Alex Hultman
2018-09-20 23:14:50 +02:00
parent 932b0b8944
commit 178dae70c2
3 changed files with 69 additions and 32 deletions
+1
View File
@@ -35,6 +35,7 @@ public:
}
/* Write in three levels of prioritization: cork-buffer, syscall, socket-buffer */
// todo: consider supporting nextLength = UNKNOWN as -1 (more but unknown size)
int write(const char *src, int length, bool optionally = false, int nextLength = 0) {
LoopData *loopData = getLoopData();