Hi Jasen

the RivetChan behaves like stdout and actually replaces stdout for the Tcl interpreters embedded in mod_rivet. You can have control over the buffering using

puts -nonewline $output_buffer

to store in the channel buffer your data and the send it calling

flush stdout

in this way you can for example send binary data in chunks of definite size. Since RivetChan is just a Tcl I/O channel you have to configure it with -translation binary which sets also the encoding to binary. Let us know if it answers your question


 -- Massimo


On 28/03/23 15:55, Jasen Kim wrote:
Hello,

I ran into an issue trying to implement an http stream between client and server.

I want to be able to send the http output in chunks rather than buffering and outputting all at once.

Is there any way to accomplish this in Apache Rivet without having to hack it?

Thanks,
Jasen

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org

Reply via email to