EMQ disconnects clients on publishing messages #828

Open
mfick76 opened this Issue Dec 18, 2016 · 1 comment

Projects

None yet

4 participants

@mfick76
mfick76 commented Dec 18, 2016

Environment

  • OS: Debian 8.6
  • Erlang/OTP: esl-erlang_19.2-1debianjessie_amd64.deb
  • EMQ: emqttd-2.0.3

Description

I have a setup where the broker is running on a single linux server using the settings from the optimization guide "tuning emq".
On the client side I use the PAHO C Library.
The test program connects 10 ! clients to Server (mqtt 1883) and then starts to send as many messages as possible (no subscriber active).

It's a simple for(;;) MQTTClient_publish(...)

For some reason the server disconnects my clients as seen below:
published 97 messages in 1 second
published 101 messages in 1 second
published 93 messages in 1 second
v_MQTTClient_connectionLost client=client_00001 cause=(null)
Connecting
Connected
published 144 messages in 1 second
published 350 messages in 1 second

If I exchange emqttd with Mosquitto the client is not disconnected, so I seems to be on the server side!

What's going wrong ?

@emqplus
Member
emqplus commented Dec 19, 2016

@mfick76 ./bin/emqttd_ctl listeners to check the shutdown_count, for example:

listener on mqtt:tcp:1883
  acceptors       : 8
  max_clients     : 1024
  current_clients : 0
  shutdown_count  : [{closed,1}]
@emqplus emqplus assigned hfeeki and huangdan and unassigned hfeeki Dec 19, 2016
@emqplus emqplus added the Support label Dec 19, 2016
@emqplus emqplus added this to the 2.0.5 milestone Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment