]> git.proxmox.com Git - pve-cluster.git/commit
API/Cluster: autoflush STDOUT for join and create
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 27 Mar 2018 06:08:37 +0000 (08:08 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 5 Apr 2018 08:25:36 +0000 (10:25 +0200)
commit17a4445f9c96e72296afc02c95351579c2e1a591
treeded0531fded2d5ffea98bc87593aa61a699737b3
parente423668db2d868ead052be7f02ed69488e6789d1
API/Cluster: autoflush STDOUT for join and create

We're in a forked worker here, so STDOUT isn't connected to a
(pseudo)TTY directly, so perl flushes only when it's intewrnal buffer
is full.

Ensure each line gets flushed out to the API client in use to give
immediate feedback about the operation.

For example, our WebUIs Task Viewer won't show anything without this
quite a bit of time, you may even get logged out before the flush
from the perl side happens, which is simply bad UX.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/API2/ClusterConfig.pm