You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Cliff Jansen (JIRA)" <ji...@apache.org> on 2015/11/20 00:44:10 UTC
[jira] [Updated] (PROTON-1054) Add acceptor context to incoming
reactor connections.
[ https://issues.apache.org/jira/browse/PROTON-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cliff Jansen updated PROTON-1054:
---------------------------------
Attachment: diff44
This patch provides a new call pn_connection_acceptor() that allows applications to find the acceptor that created the connection. Each connection holds a ref count to the acceptor.
> Add acceptor context to incoming reactor connections.
> -----------------------------------------------------
>
> Key: PROTON-1054
> URL: https://issues.apache.org/jira/browse/PROTON-1054
> Project: Qpid Proton
> Issue Type: Improvement
> Components: proton-c
> Affects Versions: 0.12.0
> Reporter: Cliff Jansen
> Assignee: Cliff Jansen
> Fix For: 0.12.0
>
> Attachments: diff44
>
>
> The reactor's acceptor currently intercepts the readable callback and sets up the incoming connection. The only generated event is PN_CONNECTION_INIT with no context of the listener.
> This prevents implementing separate connection options based on listening interface/port. One solution is to have the acceptor add context to each connection and provide a new API call to find the parent acceptor for a connection.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)