aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/repository.cpp2
-rw-r--r--src/svn.cpp5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/repository.cpp b/src/repository.cpp
index 18d145a..aef71a1 100644
--- a/src/repository.cpp
+++ b/src/repository.cpp
@@ -243,6 +243,6 @@ void Repository::Transaction::commit()
repository->fastImport.write("\n");
while (repository->fastImport.bytesToWrite())
- if (!repository->fastImport.waitForBytesWritten())
+ if (!repository->fastImport.waitForBytesWritten(-1))
qFatal("Failed to write to process: %s", qPrintable(repository->fastImport.errorString()));
}
diff --git a/src/svn.cpp b/src/svn.cpp
index e6dc519..09fddf9 100644
--- a/src/svn.cpp
+++ b/src/svn.cpp
@@ -228,9 +228,8 @@ svn_error_t *QIODevice_write(void *baton, const char *data, apr_size_t *len)
QIODevice *device = reinterpret_cast<QIODevice *>(baton);
device->write(data, *len);
- while (device->bytesToWrite() > 16*1024) {
- int timeout = device->bytesToWrite() >= 128*1024 ? -1 : 0;
- if (!device->waitForBytesWritten(timeout)) {
+ while (device->bytesToWrite() > 32*1024) {
+ if (!device->waitForBytesWritten(-1)) {
qFatal("Failed to write to process: %s", qPrintable(device->errorString()));
return svn_error_createf(APR_EOF, SVN_NO_ERROR, "Failed to write to process: %s",
qPrintable(device->errorString()));