You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ganesh Murthy (JIRA)" <ji...@apache.org> on 2017/07/13 13:45:00 UTC

[jira] [Created] (DISPATCH-797) When receiving and sending messages, Dispatch calls pn_link_recv() pn_link_send() indiscriminately

Ganesh Murthy created DISPATCH-797:
--------------------------------------

             Summary: When receiving and sending messages, Dispatch calls pn_link_recv() pn_link_send() indiscriminately 
                 Key: DISPATCH-797
                 URL: https://issues.apache.org/jira/browse/DISPATCH-797
             Project: Qpid Dispatch
          Issue Type: Bug
          Components: Container
    Affects Versions: 0.8.0
            Reporter: Ganesh Murthy
            Assignee: Ganesh Murthy
             Fix For: 1.0.0


On the receiving side, Dispatch must receive into fixed size buffers and once these buffers are full, stop receiving and start receiving only when the buffers are half drained

On the sending side, pn_link_send() must only be called after checking pn_session_outgoing_bytes (number of bytes currently buffered and ready to go out)

An example of a sender and receiver can be seen here - 

https://github.com/alanconway/qpid-proton/blob/link-stream/examples/c/proactor/streamer.c

More details will be added to this JIRA once I gather some more information.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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