processone / tsung

Tsung is a high-performance benchmark framework for various protocols including HTTP, XMPP, LDAP, etc.
http://www.process-one.net/en/tsung/
GNU General Public License v2.0
2.54k stars 406 forks source link

MQTT Subscriber not working with Tsung #244

Open puneetnagpal opened 7 years ago

puneetnagpal commented 7 years ago

Hi,

I am trying to do the load testing of my MQTT Broker using Tsung as client. Although i am able to connect the client as publisher to Rabbit MQ but unable to connect the client as subscriber. Note: I am using SSL (TLS) for authentication purpose I am getting following error Can anyone please suggest the mqtt subscriber configuration to resolve

** Reason for termination = error:{badrecord,session}

** Callback mode = state_functions

** Stacktrace =

** [{ssl_session,'-select_session/3-fun-0-',3,

              [{file,"ssl_session.erl"},{line,105}]},

 {lists,dropwhile,2,[{file,"lists.erl"},{line,1396}]},

 {ssl_session,select_session,3,[{file,"ssl_session.erl"},{line,109}]},

 {ssl_session,client_id,4,[{file,"ssl_session.erl"},{line,57}]},

 {tls_handshake,client_hello,8,[{file,"tls_handshake.erl"},{line,69}]},

 {tls_connection,init,3,[{file,"tls_connection.erl"},{line,219}]},

 {gen_statem,call_state_function,5,[{file,"gen_statem.erl"},{line,1223}]},

 {gen_statem,loop_event,6,[{file,"gen_statem.erl"},{line,995}]}]

Here is the snippet of mqtt.xml configuration for subscriber (which i downloaded from tsung open source)

<?xml version="1.0"?>

<!DOCTYPE tsung SYSTEM "/usr/local/share/tsung/tsung-1.0.dtd">

nniclausse commented 7 years ago

Hi Which version of tsung and erlang are you using ?

puneetnagpal commented 7 years ago

Hi,

Tsung version : Tsung version 1.6.1_git Erlang: V9.0

tisba commented 6 years ago

I guess you wanted to say you are using Erlang R19? Did you gave the current tsung 1.7.0 a try?

abhih commented 3 years ago

Is there any update on this please? I am facing the same issue while testing it in my local.