we only flush buffers when (previous buffer) + data > BUFFER_SIZE. This condition also sets the 'more_data' flag for header encoding. But when the client receives a packet with 'more_data' set, they will issue a pull request. The server should flush out the buffers even if they are not full on getting such a request.
we only flush buffers when (previous buffer) + data > BUFFER_SIZE. This condition also sets the 'more_data' flag for header encoding. But when the client receives a packet with 'more_data' set, they will issue a pull request. The server should flush out the buffers even if they are not full on getting such a request.