Open rforrai opened 1 year ago
+1
Thanks, I'll try to reproduce it...
If I may ask, why is getSessionState() synchronized in SMPPSessionContext ? It only fetches enum values, whatever the implementation.
I will test it without the synchronized. Indeed when returning a enum, the synchronized doesn't make sense.
I guess this can be closed now that https://github.com/opentelecoms-org/jsmpp/pull/198 was merged?
I tested on latest master, and deadlock no longer occurs. This can be closed.
When close is called from SessionStateListener, it can result in deadlock.
I tried it on versions 2.3.7, 2.3.11, 3.0.0 and current master.
Minimal example to reproduce:
Relevant logs from thread dump:
Is it possible to close the session in SessionStateListener on unbind without getting into deadlock? Or should we close the session in other way when server initiates it?