pve-http-server/src/PVE/APIServer
Fabian Grünbichler b1364a3c98 webproxy: handle unflushed write buffer
for proxied requests, we usually tear down the proxy connection
immediately when closing the source connection. this is not the correct
course of action for bulk one-way data streams that are proxied, where
the source connection might be closed, but the proxy connection might
still have data in the write buffer that needs to be written out.

push_shutdown already handles this case (closing the socket/FH after it
has been fully drained).

one example for such a proxied data stream is the 'migrate' data for a
remote migration, which gets proxied over a websocket connection.
terminating the proxied connection early makes the target VM crash for
obvious reasons.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2021-11-11 17:01:12 +01:00
..
Formatter buildsys: split packaging and source build-systems 2021-05-14 16:37:17 +02:00
AnyEvent.pm webproxy: handle unflushed write buffer 2021-11-11 17:01:12 +01:00
Formatter.pm buildsys: split packaging and source build-systems 2021-05-14 16:37:17 +02:00
Utils.pm buildsys: split packaging and source build-systems 2021-05-14 16:37:17 +02:00