Просмотр исходного кода

Merge pull request #651 from emqtt/emq10

1.1.3 - certfile, keyfile
Feng Lee 9 лет назад
Родитель
Сommit
452e60bb5f
3 измененных файлов с 12 добавлено и 6 удалено
  1. 8 2
      docs/source/tune.rst
  2. 2 2
      rel/files/emqttd.config.development
  3. 2 2
      rel/files/emqttd.config.production

+ 8 - 2
docs/source/tune.rst

@@ -72,8 +72,14 @@ Connection Tracking::
 The TIME-WAIT Buckets Pool, Recycling and Reuse::
 
     net.ipv4.tcp_max_tw_buckets=1048576
-    net.ipv4.tcp_tw_recycle = 1
-    net.ipv4.tcp_tw_reuse = 1
+
+    # Enable fast recycling of TIME_WAIT sockets.  Enabling this
+    # option is not recommended for devices communicating with the
+    # general Internet or using NAT (Network Address Translation).
+    # Since some NAT gateways pass through IP timestamp values, one
+    # IP can appear to have non-increasing timestamps.
+    # net.ipv4.tcp_tw_recycle = 1
+    # net.ipv4.tcp_tw_reuse = 1
 
 Timeout for FIN-WAIT-2 sockets::
 

+ 2 - 2
rel/files/emqttd.config.development

@@ -59,8 +59,8 @@
             %    {user_dn, "uid=$u,ou=People,dc=example,dc=com"},
             %    {ssl, fasle},
             %    {sslopts, [
-            %        {"certfile", "ssl.crt"},
-            %        {"keyfile", "ssl.key"}]}
+            %        {certfile, "ssl.crt"},
+            %        {keyfile, "ssl.key"}]}
             % ]},
 
             %% Allow all

+ 2 - 2
rel/files/emqttd.config.production

@@ -51,8 +51,8 @@
             %    {user_dn, "uid=$u,ou=People,dc=example,dc=com"},
             %    {ssl, fasle},
             %    {sslopts, [
-            %        {"certfile", "ssl.crt"},
-            %        {"keyfile", "ssl.key"}]}
+            %        {certfile, "ssl.crt"},
+            %        {keyfile, "ssl.key"}]}
             % ]},
 
             %% Allow all