bneradt commented on a change in pull request #8204:
URL: https://github.com/apache/trafficserver/pull/8204#discussion_r683604235
##########
File path: example/plugins/c-api/txn_data_sink/txn_data_sink.c
##########
@@ -86,20 +90,26 @@ client_reader(TSCont contp, TSEvent event, void *edata)
TSIOBufferReader reader = TSVIOReaderGet(input_vio);
int64_t n = TSIOBufferReaderAvail(reader);
if (n > 0) {
+ if (data->num_consumed_bytes + n > MAX_BODY_SIZE) {
+ TSError(PCP "Received a response body larger than %d bytes\n",
MAX_BODY_SIZE);
Review comment:
This actually goes away since this is solved more easily with
std::string in c++.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]