Explorar o código

order of sockopts

Feng %!s(int64=10) %!d(string=hai) anos
pai
achega
676aa3cb71
Modificáronse 2 ficheiros con 4 adicións e 4 borrados
  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}]},
             %% 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, [