Skip to content

Fix subscribe event engine mutex deadlock and improve validation.#244

Open
KGronek-Pubnub wants to merge 1 commit intomasterfrom
fix/ee_subscribe_deadlock
Open

Fix subscribe event engine mutex deadlock and improve validation.#244
KGronek-Pubnub wants to merge 1 commit intomasterfrom
fix/ee_subscribe_deadlock

Conversation

@KGronek-Pubnub
Copy link
Contributor

fix(subscribe-ee): fix mutex deadlock during unsubscribe operations

Fix mutex deadlock where ee->mutw was held while calling helper functions that tried to acquire the same mutex again. Release mutex after array operations but before calling nested functions.

fix(logger): improve context pointer validation

Replace NULL == pb checks with !pb_valid_ctx_ptr(pb) in logger public API for stronger context pointer validation, consistent with the rest of the codebase.

fix(version): add missing pubnub_uagent for OpenSSL platform

Add missing pubnub_uagent() function implementation for OpenSSL platform as declared in pubnub_version.h. Update pubnub_uname() format to match Windows and POSIX implementations and add PUBNUB_SDK_VERSION_SUFFIX support.

@KGronek-Pubnub KGronek-Pubnub self-assigned this Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant