Gordon Sim resolved PROTON-1006.
    Resolution: Fixed

I agree that the call should not block indefinitely, and have modified the code 
to prevent that. *However* the send() call for a sender in send-settled mode 
will return immediately, even before the message is ever written to the socket, 
so this pattern only works if you do further processing on the connection.

> Sending pre-settled messages over the python blocking api waits indefinetly
> ---------------------------------------------------------------------------
>                 Key: PROTON-1006
>                 URL: https://issues.apache.org/jira/browse/PROTON-1006
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: python-binding
>    Affects Versions: 0.10
>            Reporter: Ganesh Murthy
>            Assignee: Gordon Sim
>             Fix For: 0.10.1
>         Attachments: helloworld_blocking_presettled.py
> Sending a pre-settled message (snd_settle_mode = Link.SND_SETTLED) over a 
> blocking connection (using a blocking sender) blocks indefinetly.
> Steps to reproduce - 
> 1. Modify the helloworld_blocking.py (located in examples/python folder) to 
> add an AtMostOnce() call before creating the sender (or use the attached file 
> helloworld_blocking_presettled.py)
> 2. Start broker.py (located in examples/python folder)
> 3. Run helloworld_blocking_presettled.py
> You will see that the send is blocking indefinetly.

This message was sent by Atlassian JIRA

Reply via email to