add extra max size config

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898240 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-02-19 23:02:37 +00:00
parent ac58e2f5f4
commit fe79513114
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ public class TSPTimeStampService implements TimeStampService {
}
try (InputStream stream = huc.getInputStream()) {
responseBytes = IOUtils.toByteArray(stream, MAX_TIMESTAMP_RESPONSE_SIZE);
responseBytes = IOUtils.toByteArrayWithMaxLength(stream, getMaxTimestampResponseSize());
}
LOG.atDebug().log(() -> new SimpleMessage("response content: " + HexDump.dump(responseBytes, 0, 0)));
} finally {