From 5bc42bd9a3725e30d9ad5bf4d7cb90779237c9c1 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 9 Aug 2012 08:34:41 +0300 Subject: used dynamic buffer for gpg data (fixes problem with large gpg output) --- gpg_wrapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gpg_wrapper.cpp') diff --git a/gpg_wrapper.cpp b/gpg_wrapper.cpp index 410a0d5..3ad3d23 100755 --- a/gpg_wrapper.cpp +++ b/gpg_wrapper.cpp @@ -120,7 +120,7 @@ pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD inputpos=ainput; - while (TRUE) + while (true) { if(!pri.hProcess) break; @@ -135,7 +135,7 @@ pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD success=WriteFile(writestdin,inputpos,size,&transfered,NULL); inputpos+=transfered; - boost::this_thread::sleep(boost::posix_time::milliseconds(200)); + boost::this_thread::sleep(boost::posix_time::milliseconds(50)); } storeOutput(readstdout,aoutput); -- cgit v1.2.3