Ver código fonte

order of sockopts

Feng 10 anos atrás
pai
commit
676aa3cb71

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

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

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

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