From 90550787a8b00329170a6a1d0e9bb58aeb92ac6f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 3 Feb 2013 21:36:03 +0000 Subject: [PATCH] FIXME comment. --- src/lib/util.cc | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.30.2