Releases: pubnub/c-core
Releases · pubnub/c-core
v5.1.6
August 05 2025
Fixed
- Fixed deadlock for sync polling via
last_result
. Fixed the following issues reported by @lucast-broadsign: #222.
v5.1.5
July 28 2025
Fixed
- Define sleep function for Windows builds.
Modified
- Guard
unistd
inclusion with platform check.
v5.1.4
July 22 2025
Fixed
- Fix bug that UTF8 characters used in some end points were breaking the request format.
v5.1.3
July 15 2025
Fixed
- Fixed memory leak when calling pubnub_free on an initialized PubNub object.
- Fixed socket leak when calling pubnub_free on a PubNub object with an open connection.
- Fixed socket leak when publishing using a context with use_http_keep_alive = 0.
- Fixed crash due to double-free when calling pubnub_free after pbpal_handle_socket_condition encounters a socket error. Fixed the following issues reported by @blake-spangenberg: #221.
v5.1.2
July 08 2025
Modified
- Use recursive semaphore for
mutex
lock and unlock inpbpal_mutex.h
.
v5.1.1
June 26 2025
Fixed
- Fix issue because of which it was impossible for sync PubNub context version to cancel operation awaited in secondary thread.
Modified
- Fix the code for which the compiler emitted warnings during the build for
mbedTLS
andESP_PLATFORM=1
. Fixed the following issues reported by @blake-spangenberg: #213.
v5.1.0
June 20 2025
Added
- Add functions which allow to enable and disable "smart heartbeat" behavior for automatic heartbeat:
pubnub_enable_smart_heartbeat
andpubnub_disable_smart_heartbeat
. - Add
pubnub_last_publish_timetoken
function to retrieve recently published message high precision timetoken.
Fixed
- Fix issue which caused deadlock on secondary thread and as result heartbeat stop.
- Fix signature of
pbntf_init_callback
and its usage in Windows dedicated code.
v5.0.3
June 17 2025
Fixed
- Fixed wrong string copy if multiple channels(groups) are provided for
pubnub_set_state
. Note that usingmemcpy
instead ofstrncpy
is used intentionally because of the ESP support. - Fixed crash when double comma is provided to
pubnub_set_state
as a channels(groups). - Fixed wrong check if the reallocation is required in
pubnub_set_state
. - Removed additional allocation of memory for temporary data.
- Changed the amount of bytes allocated based on the provided parameters instead of hardcoded values.
v5.0.2
June 02 2025
Fixed
- Fix
pubnub_reconnect
andpubnub_disconnect
not to print an error when called within incorrect subscription state. Warning will be printed instead and function won't execute further.
v5.0.1
May 26 2025
Fixed
- Fix crashes that could sometimes happen during unsubscribe due to calling
strlen
on null pointers. - Fix
pubnub_fetch_history
function when used with crypto api. ChangePUBNUB_MAX_URL_PARAMS
to 12. - Fix the issue that was causing memory fragmentation fault at the moment of the next automated heartbeat call.