You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Rafael H. Schloming (JIRA)" <ji...@apache.org> on 2012/10/04 20:31:47 UTC

[jira] [Commented] (PROTON-39) Implement pn_offer for sender links

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

Rafael H. Schloming commented on PROTON-39:
-------------------------------------------

I've committed some partial work for this. It modifies/extends the patch a bit, but it still needs to be wired into the protocol so I'm going to leave this open for the moment.
                
> Implement pn_offer for sender links
> -----------------------------------
>
>                 Key: PROTON-39
>                 URL: https://issues.apache.org/jira/browse/PROTON-39
>             Project: Qpid Proton
>          Issue Type: New Feature
>          Components: proton-c
>            Reporter: Ted Ross
>         Attachments: proton-39.patch
>
>
> The proposed patch adds two functions to the engine API:
> void pn_offer(link, credit)
> bool pn_connection_links_writeable(conn)
> pn_offer is used by the attached node to indicate to the engine that it has messages available for immediate transfer over the link.
> pn_connection_links_writable returns true if the connection has at least one outgoing link with both receiver credit and offered credit.  This is used by the driver to ensure that the connection's FD (or equivalent) is in the set of writable FDs to be processed it the outgoing transport is writable.
> Note that pn_offer is absolute (not cumulative).  The attached node is responsible for keeping the offer vaule up-to-date as messages are sent and received.
> The patch does not make any changes to the protocol exchange.  Additional work is needed to communicate the offer information to the remote receiver so the receiver can intelligently manage its credits.
> The driving need for this change is for driver functionality.  pn_offer is the cleanest mechanism for a node to tell the driver that an outbound link's connection should be processed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira