Juan-Carlos Gandhi (
juan_gandhi) wrote2007-11-20 01:39 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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)