Home GnuPG

Fix ProcessStdInOutput finalize
529d3b7e7f0bUnpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

Fix ProcessStdInOutput finalize

This makes sure that the data is completly written
to the Process before waiting for the process
to finish. If this is not done the output will be written
in small chunks trough the eventloop causing an uncessary
delay before the process on which we wait has even a chance
to work.
This delay is mainly noticabe on Windows where it can
take ~30 seconds to write out a 10MB file in the 512 byte chunks
that are provided by gpgme in QProcess::write calls.
Also fixes a problem where sometimes the last chunk was not
sent before the Output process closed.

Details

Provenance
aheineckeAuthored on Aug 9 2013, 4:29 PM
Parents
rKLEOPATRA7a14561d9927: Add uiserver support for OUTPUT --binary option
Branches
Unknown
Tags
Unknown