Quellcode durchsuchen

tls: doc: update default value for compression

Andrei Pelinescu-Onciul vor 15 Jahren
Ursprung
Commit
a120c193e5
3 geänderte Dateien mit 14 neuen und 8 gelöschten Zeilen
  1. 4 0
      NEWS
  2. 5 4
      modules/tls/README
  3. 5 4
      modules/tls/doc/params.xml

+ 4 - 0
NEWS

@@ -42,6 +42,10 @@ modules:
             versions: ssl_release_buffers, ssl_freelist_max_len,
             versions: ssl_release_buffers, ssl_freelist_max_len,
             ssl_max_send_fragment, ssl_read_ahead. For more info see
             ssl_max_send_fragment, ssl_read_ahead. For more info see
             modules/doc/tls/README.
             modules/doc/tls/README.
+           compression is now disabled by default. To enable it set
+            tls_disable_compression to 0, but note that memory usage will
+            increase dramatically especially for large number of
+            connections (>1000).
 tm:
 tm:
    - t_reply() can be used both from the main/core onreply_route{} and tm
    - t_reply() can be used both from the main/core onreply_route{} and tm
      onreply_route[...]{}s.
      onreply_route[...]{}s.

+ 5 - 4
modules/tls/README

@@ -440,14 +440,15 @@ modparam("tls", "connection_timeout", 60)
 1.8.12. tls_disable_compression (boolean)
 1.8.12. tls_disable_compression (boolean)
 
 
    If set compression over SSL/TLS will be disabled. Note that compression
    If set compression over SSL/TLS will be disabled. Note that compression
-   uses a lot of memory, so if you want to minimize memory usage is a good
-   ideea to disable it.
+   uses a lot of memory (about 10x more then with the compression
+   disabled), so if you want to minimize memory usage is a good idea to
+   disable it.
 
 
-   By default compression is enabled.
+   By default compression is disabled.
 
 
    Example 13. Set tls_disable_compression parameter
    Example 13. Set tls_disable_compression parameter
 ...
 ...
-modparam("tls", "tls_disable_compression", 1)
+modparam("tls", "tls_disable_compression", 0) # enable
 ...
 ...
 
 
 1.8.13. ssl_release_buffers (integer)
 1.8.13. ssl_release_buffers (integer)

+ 5 - 4
modules/tls/doc/params.xml

@@ -259,17 +259,18 @@ modparam("tls", "connection_timeout", 60)
 	<title><varname>tls_disable_compression</varname> (boolean)</title>
 	<title><varname>tls_disable_compression</varname> (boolean)</title>
 	<para>
 	<para>
 		If set compression over SSL/TLS will be disabled.
 		If set compression over SSL/TLS will be disabled.
-		Note that compression uses a lot of memory, so if you want to minimize
-		memory usage is a good ideea to disable it.
+		Note that compression uses a lot of memory (about 10x more then with
+		the compression disabled), so if you want to minimize
+		memory usage is a good idea to disable it.
 	</para>
 	</para>
 	<para>
 	<para>
-		By default compression is enabled.
+		By default compression is disabled.
 	</para>
 	</para>
 	<example>
 	<example>
 	    <title>Set <varname>tls_disable_compression</varname> parameter</title>
 	    <title>Set <varname>tls_disable_compression</varname> parameter</title>
 	    <programlisting>
 	    <programlisting>
 ...
 ...
-modparam("tls", "tls_disable_compression", 1)
+modparam("tls", "tls_disable_compression", 0) # enable
 ...
 ...
 	    </programlisting>
 	    </programlisting>
 	</example>
 	</example>