protected long bytesWritten = 0;
+ /**
+ * Request body bytes read for the current request.
+ */
+ protected long bodyBytesRead = 0;
+
+
// ------------------------------------------------------------ Constructor
public AbstractAjpProcessor(int packetSize, AbstractEndpoint endpoint) {
response.recycle();
certificates.recycle();
bytesWritten = 0;
+ bodyBytesRead = 0;
}
* Read bytes into the specified chunk.
*/
@Override
- public int doRead(ByteChunk chunk, Request req )
+ public int doRead(ByteChunk chunk, Request req)
throws IOException {
if (endOfStream) {
}
}
ByteChunk bc = bodyBytes.getByteChunk();
+ bodyBytesRead += bc.getLength();
chunk.setBytes(bc.getBuffer(), bc.getStart(), bc.getLength());
empty = true;
- return chunk.getLength();
-
+ return bc.getLength();
}
}