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
+1 -1
View File
@@ -316,7 +316,7 @@ private:
/* We store old backpressure since it is unclear whether write drained anything,
* however, in case of coming here with 0 backpressure we still need to emit drain event */
int backpressure = asyncSocket->getBufferedAmount();
unsigned int backpressure = asyncSocket->getBufferedAmount();
/* Drain as much as possible */
asyncSocket->write(nullptr, 0);