FIXME comment.
authorCarl Hetherington <cth@carlh.net>
Sun, 3 Feb 2013 21:36:03 +0000 (21:36 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 3 Feb 2013 21:36:03 +0000 (21:36 +0000)
src/lib/util.cc

index 328be066a4f2266bc7163ca1d10e62df4c0079ec..340b76b57bfaad0eb762ea98ba73a64497d351b8 100644 (file)
@@ -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)