funbox/smppex

timer issue

edescourtis opened this issue · 1 comments

For some reason, I cannot have two instances of SMPPEX.Session running.

16:19:58.456 [info]  ESME stopped with reason {:timers, :session_init_timer}

16:19:58.457 [error] GenServer #PID<0.15928.1> terminating
** (stop) {:timers, :session_init_timer}
Last message: {:check_timers, -576459768537}
State: %SMPPEX.TransportSession{buffer: "", module: SMPPEX.Session, module_state: %SMPPEX.Session{auto_pdu_handler: %SMPPEX.Session.AutoPduHandler{by_ref: #Reference<0.3465077020.1560674305.128573>, by_sequence_number: #Reference<0.3465077020.1560674305.128572>}, module: SmppTest.SmppEsme, module_state: %{bound: true, buffer_size: 500000, host: "smppex.rubybox.ru", outbox_size: 0, password: "password", pobox_pid: #PID<0.15929.1>, port: 2775, system_id: "smppclient1", waiting_for_more: true, window: 5000}, pdus: %SMPPEX.PduStorage{by_sequence_number: #Reference<0.3465077020.1560674305.128571>}, response_limit: 60000, sequence_number: 1, tick_timer_ref: #Reference<0.3465077020.1560543233.131401>, time: -576459768537, timer_resolution: 100, timers: %SMPPEX.SMPPTimers{connection_time: -576459778637, enquire_link_limit: 30000, enquire_link_resp_limit: 30000, enquire_link_state: :active, inactivity_limit: :infinity, last_peer_action_time: -576459778637, last_transaction_time: 0, session_init_limit: 10000, session_init_state: :established}}, ref: #Reference<0.3465077020.1560543233.128554>, socket: #Port<0.10600>, transport: :ranch_tcp}

I am not sure what I could be doing wrong. Any insights?

Nevermind it works. Your demo server just doesn't allow multiple binds from the same user.