[pve-devel] applied: [PATCH v2 http-server 08/13] support streaming data form fh to client

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Apr 23 13:56:00 CEST 2021


On 22.04.21 17:34, Stefan Reiter wrote:
> Use an explicit AnyEvent::Handle similar to websocket proxying.
> 
> Needs some special care to make sure we apply backpressure correctly to
> avoid caching too much data. Note that because of AnyEvent restrictions,
> specifying a "fh" to point to a file or a packet-based socket may result
> in unwanted behaviour[0].
> 
> [0]: https://metacpan.org/pod/AnyEvent::Handle#DESCRIPTION
> 
> Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
> ---
> 
> v2:
> * move to extra sub "response_stream"
> * adapt comments
> 
>  PVE/APIServer/AnyEvent.pm | 105 ++++++++++++++++++++++++++++++++++++--
>  1 file changed, 101 insertions(+), 4 deletions(-)
> 
>

applied, thanks!





More information about the pve-devel mailing list