-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deadlock when closing session in SessionStateListener #193
Labels
Comments
+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. |
4 tasks
der-ambi
added a commit
to der-ambi/jsmpp
that referenced
this issue
Dec 6, 2023
this will avoid a dead-lock when trying to close the session from session state listener see opentelecoms-org#193
der-ambi
added a commit
to der-ambi/jsmpp
that referenced
this issue
Dec 6, 2023
this will avoid a dead-lock when trying to close the session from session state listener. See opentelecoms-org#193 Signed-off-by: Christian Ambach <[email protected]>
der-ambi
added a commit
to der-ambi/jsmpp
that referenced
this issue
Dec 29, 2023
this will avoid a dead-lock when trying to close the session from session state listener. See opentelecoms-org#193 Signed-off-by: Christian Ambach <[email protected]>
der-ambi
added a commit
to der-ambi/jsmpp
that referenced
this issue
Jan 6, 2024
this will avoid a dead-lock when trying to close the session from session state listener. See opentelecoms-org#193 Signed-off-by: Christian Ambach <[email protected]>
der-ambi
added a commit
to der-ambi/jsmpp
that referenced
this issue
Jan 6, 2024
this will avoid a dead-lock when trying to close the session from session state listener. See opentelecoms-org#193 Signed-off-by: Christian Ambach <[email protected]>
I guess this can be closed now that #198 was merged? |
I tested on latest master, and deadlock no longer occurs. This can be closed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
The text was updated successfully, but these errors were encountered: