projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3af3c9
)
FIXME comment.
author
Carl Hetherington
<cth@carlh.net>
Sun, 3 Feb 2013 21:36:03 +0000
(21:36 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 3 Feb 2013 21:36:03 +0000
(21:36 +0000)
src/lib/util.cc
patch
|
blob
|
history
diff --git
a/src/lib/util.cc
b/src/lib/util.cc
index 328be066a4f2266bc7163ca1d10e62df4c0079ec..340b76b57bfaad0eb762ea98ba73a64497d351b8 100644
(file)
--- a/
src/lib/util.cc
+++ b/
src/lib/util.cc
@@
-622,6
+622,9
@@
Socket::read_definite_and_consume (uint8_t* data, int size, int timeout)
/** Read as much data as is available, up to some limit.
* @param data Where to put the data.
* @param size Maximum amount of data to read.
+ *
+ * XXX This method assumes that there is always lots of data to read();
+ * if there isn't, it will hang waiting for data that will never arrive.
*/
void
Socket::read_indefinite (uint8_t* data, int size, int timeout)