Reopen closed file fixes binary diffs

This commit is contained in:
Alex Hultman
2018-09-23 23:52:12 +02:00
parent 8106a0f628
commit 49f503c570
5 changed files with 33 additions and 14 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ int main(int argc, char **argv) {
/* We had nothing readily available right now, request async chunk and pause the stream until we have */
asyncFileReader.request(offset, [res](std::string_view chunk) {
std::cout << "We came here!" << std::endl;
//std::cout << "We came here!" << std::endl;
/* We were aborted */
if (!chunk.length()) {
@@ -66,7 +66,7 @@ int main(int argc, char **argv) {
// what if we resumed before we paused! we cannot do that!
std::cout << "PAusing stream out due to empty cache!" << std::endl;
//std::cout << "PAusing stream out due to empty cache!" << std::endl;
return uWS::HTTP_STREAM_PAUSE;
}
}, asyncFileReader.getFileSize());