Skip to content

fix(transport): close idle HTTP/2 sessions and release them on destroy - #547

Merged
mohitpubnub merged 11 commits into
masterfrom
CLEN-3986
Nov 24, 2026
Merged

mohitpubnub merged 11 commits into
masterfrom
CLEN-3986

Conversation

@mohitpubnub

@mohitpubnub mohitpubnub commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

fix(transport): close idle HTTP/2 sessions and release them on destroy

NodeTransport now closes an h2 session once it has had no queued or running requests for idle time,
or for keepAliveSettings.timeout duration when keepAlive is on.

fix(event-engine): release channels shared by multiple subscriptions

Fix issue with unsubscribe method not releasing channel in case of zero active subscription reference.

Each h2 session is now closed once it has had no queued or running requests for the idle timeout:
4000 ms, or keepAliveSettings.timeout when keepAlive is on.
keepAliveSettings.timeout, 30000 ms by default
destroy will explicitly close the connections
@pubnub-snyk-universal-prd

pubnub-snyk-universal-prd Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@parfeon parfeon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

…tion to avoid appending -pnpres if already provided
@mohitpubnub

Copy link
Copy Markdown
Contributor Author

@pubnub-release-bot release

@mohitpubnub
mohitpubnub merged commit d7e1446 into master Nov 24, 2026
20 checks passed
@mohitpubnub
mohitpubnub deleted the CLEN-3986 branch November 24, 2026 12:31
@pubnub-release-bot

Copy link
Copy Markdown
Contributor

🚀 Release successfully completed 🚀

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.

4 participants