It is a little muddy to me (even after reading all available documentation) why some of the examples in the Traffic server examples contain lines of code such as:

data->output_vio = TSVConnWrite(output_conn, contp, data->output_reader,

INT64_MAX);



What is the relationship between TSVConnWrite and TSIOBufferWrite.


For example in handling a transformation if you have multiple calls to TSIOBufferWrite, 


Should you keep track of all of the data written and then make a single call to TSVConnWrite?


Or should you call TSVConnWrite with the amount of data to be written just prior to each TSIOBufferWrite?