summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)