summaryrefslogtreecommitdiffstats
path: root/runtime/stream.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-06-05 18:41:28 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-06-05 18:41:28 +0200
commit84b786753744d9f7a002665571a428283feae248 (patch)
treee2276df57d9f8db7e28c094c6c9e9036aa5452e8 /runtime/stream.h
parent68f0ffb29acf5ff07ccd8f30581d96d6915a834e (diff)
downloadrsyslog-84b786753744d9f7a002665571a428283feae248.tar.gz
rsyslog-84b786753744d9f7a002665571a428283feae248.tar.xz
rsyslog-84b786753744d9f7a002665571a428283feae248.zip
cleanup in preparation of next steps
now cleand up omfile and straighted out some things. The only commented-out code left is code that must be moved/merged to the stream class, my next target.
Diffstat (limited to 'runtime/stream.h')
-rw-r--r--runtime/stream.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/runtime/stream.h b/runtime/stream.h
index e4871611..7eb386fb 100644
--- a/runtime/stream.h
+++ b/runtime/stream.h
@@ -19,7 +19,29 @@
* can easily be persistet. The bottom line is that it makes much sense to
* use this class whereever possible as its features may grow in the future.
*
- * Copyright 2008 Rainer Gerhards and Adiscon GmbH.
+ * An important note on writing gzip format via zlib (kept anonymous
+ * by request):
+ *
+ * --------------------------------------------------------------------------
+ * We'd like to make sure the output file is in full gzip format
+ * (compatible with gzip -d/zcat etc). There is a flag in how the output
+ * is initialized within zlib to properly add the gzip wrappers to the
+ * output. (gzip is effectively a small metadata wrapper around raw
+ * zstream output.)
+ *
+ * I had written an old bit of code to do this - the documentation on
+ * deflatInit2() was pretty tricky to nail down on this specific feature:
+ *
+ * int deflateInit2 (z_streamp strm, int level, int method, int windowBits,
+ * int memLevel, int strategy);
+ *
+ * I believe "31" would be the value for the "windowBits" field that you'd
+ * want to try:
+ *
+ * deflateInit2(zstrmptr, 6, Z_DEFLATED, 31, 9, Z_DEFAULT_STRATEGY);
+ * --------------------------------------------------------------------------
+ *
+ * Copyright 2008, 2009 Rainer Gerhards and Adiscon GmbH.
*
* This file is part of the rsyslog runtime library.
*