juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2007-11-20 01:39 pm

Turing test: the case of potential inifinity


if (responseBuffer.size() > TOO_LARGE_RESPONSE_SIZE) { // report large responses
  String logString = responseBuffer.toString();
  if (logString.length() > 200) {
    logString = logString.substring(0, 200) + "...";
  }
  log("a very long response: " + logString);
}


(throws OutOfMemory at strategic moments)

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting