Skip to content

Conversation

parfeon
Copy link
Contributor

@parfeon parfeon commented Sep 22, 2025

fix(poller): address issue that returned poll immediately

Fix the issue because of which poll always returned immediately without waiting for the actual event (TLS handshake flow uses proper watcher now).

Fix the issue because of which `poll` always returned immediately without waiting for the actual
event (TLS handshake flow uses proper watcher now).
@parfeon parfeon self-assigned this Sep 22, 2025
@parfeon parfeon added status: done This issue is considered resolved. priority: high This PR should be reviewed ASAP. type: fix This PR contains fixes to existing features. labels Sep 22, 2025
Copy link
Contributor

@Xavrax Xavrax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


/* Handles socket condition on given platform */
enum pubnub_res pbpal_handle_socket_condition(int result, pubnub_t* pb, char const* file, int line);
enum pubnub_res pbpal_handle_socket_condition(int result, pubnub_t* pb, char const* file, int line, bool *needRead, bool* needWrite);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend using tribool instead of bool ptr.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, but we use bools in other functions. I still not really sure what happened that we needed that pubnub_tribool enum.

@parfeon
Copy link
Contributor Author

parfeon commented Sep 23, 2025

@pubnub-release-bot release

@parfeon parfeon merged commit 00d33f4 into master Sep 23, 2025
6 checks passed
@parfeon parfeon deleted the CLEN-2895 branch September 23, 2025 07:53
@pubnub-release-bot
Copy link
Contributor

🚀 Release successfully completed 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: high This PR should be reviewed ASAP. status: done This issue is considered resolved. type: fix This PR contains fixes to existing features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants