ソースを参照

order of sockopts

Feng 10 年 前
コミット
676aa3cb71
2 ファイル変更4 行追加4 行削除
  1. 2 2
      rel/files/emqttd.config.development
  2. 2 2
      rel/files/emqttd.config.production

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

@@ -187,11 +187,11 @@
             {access, [{allow, all}]},
             {access, [{allow, all}]},
             %% Socket Options
             %% Socket Options
             {sockopts, [
             {sockopts, [
-                {backlog, 512}
                 %Set buffer if hight thoughtput
                 %Set buffer if hight thoughtput
                 %{recbuf, 4096},
                 %{recbuf, 4096},
-                %{sndbuf, 4096}
+                %{sndbuf, 4096},
                 %{buffer, 4096},
                 %{buffer, 4096},
+                {backlog, 512}
             ]}
             ]}
         ]},
         ]},
         {mqtts, 8883, [
         {mqtts, 8883, [

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

@@ -179,11 +179,11 @@
             {access, [{allow, all}]},
             {access, [{allow, all}]},
             %% Socket Options
             %% Socket Options
             {sockopts, [
             {sockopts, [
-                {backlog, 512}
                 %Set buffer if hight thoughtput
                 %Set buffer if hight thoughtput
                 %{recbuf, 4096},
                 %{recbuf, 4096},
-                %{sndbuf, 4096}
+                %{sndbuf, 4096},
                 %{buffer, 4096},
                 %{buffer, 4096},
+                {backlog, 512}
             ]}
             ]}
         ]},
         ]},
         {mqtts, 8883, [
         {mqtts, 8883, [