qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PROTON-1445) Change proactor ownership model
Date Wed, 12 Apr 2017 22:52:42 GMT

    [ https://issues.apache.org/jira/browse/PROTON-1445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15966768#comment-15966768
] 

ASF subversion and git services commented on PROTON-1445:
---------------------------------------------------------

Commit 640e95c4af3af5e66ff2cef1ab85da45a3329f15 in qpid-proton's branch refs/heads/master
from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=640e95c ]

PROTON-1445: Implement release_connection for proactor and driver

Allow user to take back ownership of a connection.


> Change proactor ownership model
> -------------------------------
>
>                 Key: PROTON-1445
>                 URL: https://issues.apache.org/jira/browse/PROTON-1445
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-c
>    Affects Versions: 0.17.0
>            Reporter: Alan Conway
>            Assignee: Alan Conway
>             Fix For: 0.18.0
>
>
> Change ownership model for pn_connection_t and pn_listener_t managed by the proactor:
instead of proactor freeing automatically after the final event, the user must free on or
after the final event.
> There are 2 basic use cases:
> 1. Free connection/listener immediately on the last event.
> 2. Keep connection/listener in memory until all application pointers are cleaned up.
> Proactor ownership does 1. very well, but makes 2. very difficult without
> exposing reference-counts.
> User ownership supports both reasonably easily: 1. is implemented by calling pn_connection_free()
or pn_listener_free() in the event handler on the last event.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message