summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-02-03 21:36:03 +0000
committerCarl Hetherington <cth@carlh.net>2013-02-03 21:36:03 +0000
commit90550787a8b00329170a6a1d0e9bb58aeb92ac6f (patch)
treeec55a9eac6ac36c60cd7c07ace7dc8220852bc94 /src/lib
parentd3af3c9c9e1c0272986b41f9ffa323e46a79cd75 (diff)
FIXME comment.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/util.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 328be066a..340b76b57 100644
--- 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)