Skip to content

Unref ports after re-subscribe#2125

Closed
alexbakker wants to merge 1 commit into
sipwise:masterfrom
alexbakker:resub-leak
Closed

Unref ports after re-subscribe#2125
alexbakker wants to merge 1 commit into
sipwise:masterfrom
alexbakker:resub-leak

Conversation

@alexbakker

Copy link
Copy Markdown
Contributor

Previously, the ports used for a monologue subscription would leak upon re-subscribe. __assign_stream_fds cleared the stream fd queue without decrementing the ref count. This prevented monologue_destroy from releasing the ports on unsubscribe.

Previously, the ports used for a monologue subscription would leak upon re-subscribe.
``__assign_stream_fds`` cleared the stream fd queue without decrementing the ref count. This
prevented ``monologue_destroy`` from releasing the ports on unsubscribe.
@alexbakker

Copy link
Copy Markdown
Contributor Author

Looks like the daemon-tests-alias test was relying on ports staying open after monologue destroy, but this only worked because of the ref count issue. Ports are now correctly released, so sends to those ports will fail. I've replaced those assertions with a new snd_no helper.

sipwise-jenkins pushed a commit that referenced this pull request Jun 29, 2026
Previously, the ports used for a monologue subscription would leak upon re-subscribe.
``__assign_stream_fds`` cleared the stream fd queue without decrementing the ref count. This
prevented ``monologue_destroy`` from releasing the ports on unsubscribe.

Closes #2125

Change-Id: Ib86290d6a35e2388e34098f2847f1e34b3db2c5d
(cherry picked from commit 250df2a)
sipwise-jenkins pushed a commit that referenced this pull request Jun 29, 2026
Previously, the ports used for a monologue subscription would leak upon re-subscribe.
``__assign_stream_fds`` cleared the stream fd queue without decrementing the ref count. This
prevented ``monologue_destroy`` from releasing the ports on unsubscribe.

Closes #2125

Change-Id: Ib86290d6a35e2388e34098f2847f1e34b3db2c5d
(cherry picked from commit 250df2a)
sipwise-jenkins pushed a commit that referenced this pull request Jun 29, 2026
Previously, the ports used for a monologue subscription would leak upon re-subscribe.
``__assign_stream_fds`` cleared the stream fd queue without decrementing the ref count. This
prevented ``monologue_destroy`` from releasing the ports on unsubscribe.

Closes #2125

Change-Id: Ib86290d6a35e2388e34098f2847f1e34b3db2c5d
(cherry picked from commit 250df2a)
sipwise-jenkins pushed a commit that referenced this pull request Jun 29, 2026
Previously, the ports used for a monologue subscription would leak upon re-subscribe.
``__assign_stream_fds`` cleared the stream fd queue without decrementing the ref count. This
prevented ``monologue_destroy`` from releasing the ports on unsubscribe.

Closes #2125

Change-Id: Ib86290d6a35e2388e34098f2847f1e34b3db2c5d
(cherry picked from commit 250df2a)
(cherry picked from commit 2e034c2)
sipwise-jenkins pushed a commit that referenced this pull request Jun 29, 2026
Previously, the ports used for a monologue subscription would leak upon re-subscribe.
``__assign_stream_fds`` cleared the stream fd queue without decrementing the ref count. This
prevented ``monologue_destroy`` from releasing the ports on unsubscribe.

Closes #2125

Change-Id: Ib86290d6a35e2388e34098f2847f1e34b3db2c5d
(cherry picked from commit 250df2a)
(cherry picked from commit ba8d31d)
sipwise-jenkins pushed a commit that referenced this pull request Jun 29, 2026
Previously, the ports used for a monologue subscription would leak upon re-subscribe.
``__assign_stream_fds`` cleared the stream fd queue without decrementing the ref count. This
prevented ``monologue_destroy`` from releasing the ports on unsubscribe.

Closes #2125

Change-Id: Ib86290d6a35e2388e34098f2847f1e34b3db2c5d
(cherry picked from commit 250df2a)
(cherry picked from commit 135d648)
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