projects
/
cubemap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fb0ec9c
)
Make the warning on dropping junk bytes clearer.
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Wed, 22 Jul 2015 22:48:23 +0000
(
00:48
+0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Wed, 22 Jul 2015 22:48:23 +0000
(
00:48
+0200)
httpinput.cpp
patch
|
blob
|
history
diff --git
a/httpinput.cpp
b/httpinput.cpp
index
025fd45
..
807abac
100644
(file)
--- a/
httpinput.cpp
+++ b/
httpinput.cpp
@@
-578,7
+578,7
@@
void HTTPInput::drop_pending_data(size_t num_bytes)
if (num_bytes == 0) {
return;
}
if (num_bytes == 0) {
return;
}
- log(WARNING, "[%s] Dropping %lld junk bytes
from stream, maybe it is not a Metacube2 stream?
",
+ log(WARNING, "[%s] Dropping %lld junk bytes
; not a Metacube2 stream, or data was dropped from the middle of the stream
",
url.c_str(), (long long)num_bytes);
assert(pending_data.size() >= num_bytes);
pending_data.erase(pending_data.begin(), pending_data.begin() + num_bytes);
url.c_str(), (long long)num_bytes);
assert(pending_data.size() >= num_bytes);
pending_data.erase(pending_data.begin(), pending_data.begin() + num_bytes);