throw new IOException("Unable to parser header line [" + line + "]");
}
} else {
frame.setHeaders(headers);
Ascii contentLength = contentLengthValue[0];
if (contentLength != null) {
// Bless the client, he's telling us how much data to read in.
int length = 0;
try {
length = Integer.parseInt(contentLength.toString());
} catch (NumberFormatException e) {
throw new IOException("Specified content-length is not a valid integer");
}
if (protocol.maxDataLength != -1 && length > protocol.maxDataLength) {