We have a client-server project, where client (C++) needs to send a lot of data to server every a few seconds. Often there are 60000 records ready to be sent to server per round , each record about 400-byte. So we decide to do pagination (chunking): 1 page has 1000 records. MY question is:
1.how to do paging, without close/open stream channel every time
it seems after writer->WritesDoen() and Finish(), the channel is closed, so I have to reopen the same channel immediately for the 2nd page. But If I don't call writer->WritesDone and Finish(), this page is not sent. I really want send every page with the same writer, and not close the channel in between.