GitHub
Moderator
[httpstream] Add ring buffer for HTTP/HTTPS streams
This introduces a configurable ring buffer (default 2MB) for eHttpStream and eHttpsStream. The streaming thread now acts as a producer, filling this buffer, while the read method acts as a consumer. This decouples network I/O from data consumption, allowing for pre-buffering which improves streaming robustness and handles network fluctuations more gracefully.
(cherry picked from commit 448ea0350fd46cbe96fc7b05766c4fd5ba78d72c)
Continue reading...
This introduces a configurable ring buffer (default 2MB) for eHttpStream and eHttpsStream. The streaming thread now acts as a producer, filling this buffer, while the read method acts as a consumer. This decouples network I/O from data consumption, allowing for pre-buffering which improves streaming robustness and handles network fluctuations more gracefully.
(cherry picked from commit 448ea0350fd46cbe96fc7b05766c4fd5ba78d72c)
Continue reading...