aboutsummaryrefslogtreecommitdiff
path: root/bbot/worker/worker.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/worker/worker.cxx')
-rw-r--r--bbot/worker/worker.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx
index e4b5e5e..18546e4 100644
--- a/bbot/worker/worker.cxx
+++ b/bbot/worker/worker.cxx
@@ -719,6 +719,11 @@ upload_manifest (tracer& trace,
// other hand, uploading from a file appears to work reliably (we still
// get an odd error on Windows from time to time with larger uploads).
//
+ // Let's not break lines in the manifest values not to further increase
+ // the size of the manifest encoded representation. Also here we don't
+ // care much about readability of the manifest since it will only be read
+ // by the bbot agent anyway.
+ //
#if 0
// Note: need to add compression support if re-enable this.
tftp_curl c (trace,
@@ -729,7 +734,7 @@ upload_manifest (tracer& trace,
"--tftp-blksize", tftp_blksize,
"--max-time", tftp_put_timeout);
- manifest_serializer s (c.out, url);
+ manifest_serializer s (c.out, url, true /* long_lines */);
m.serialize (s);
c.out.close ();
#else
@@ -739,7 +744,7 @@ upload_manifest (tracer& trace,
tmp = auto_rmfile (path::temp_path (what + "-manifest.lz4"));
ofdstream ofs (tmp.path, fdopen_mode::binary);
olz4stream ozs (ofs, 9, 5 /* 256KB */, nullopt /* content_size */);
- manifest_serializer s (ozs, tmp.path.string ());
+ manifest_serializer s (ozs, tmp.path.string (), true /* long_lines */);
m.serialize (s);
ozs.close ();
ofs.close ();