You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a client calls sub we record a mapping entry to map their sid to the receivers address (ie where we will deliver the messages). When a client calls unsub, we should remove this mapping. Also if a client calls unsub with max_messages: 1, we should automatically cleanup the mapping of sid => pid.
In the request/response flow we generate a new subscription for every request and failure to cleanup these subscriptions will result in a memory leak.
The text was updated successfully, but these errors were encountered:
mmmries
changed the title
Cleanup Subscriptions after max_messages
Cleanup Subscriptions on unsub
Mar 30, 2017
When a client calls
sub
we record a mapping entry to map theirsid
to the receivers address (ie where we will deliver the messages). When a client callsunsub
, we should remove this mapping. Also if a client callsunsub
withmax_messages: 1
, we should automatically cleanup the mapping ofsid
=>pid
.In the
request
/response
flow we generate a new subscription for every request and failure to cleanup these subscriptions will result in a memory leak.The text was updated successfully, but these errors were encountered: