Jiri Danek created PROTON-1357:
----------------------------------

             Summary: Example C clients do not disconnect on protocol errors
                 Key: PROTON-1357
                 URL: https://issues.apache.org/jira/browse/PROTON-1357
             Project: Qpid Proton
          Issue Type: Bug
          Components: examples, proton-c
    Affects Versions: 0.16.0
            Reporter: Jiri Danek


If you take {{libuv_recv}} example C program and set up a "server" with

{{$ nc -l 5672 < leak-f1c681da874efe3b168d6bd00e1de53c5a3823ea}}

and then run

{noformat}
$ ./libuv_recv -a 127.0.0.1:5672/jms.queue.example
[0x69ab390]:Error decoding frame: PN_UNDERFLOW not enough data to decode
\x00S\x12\xc04\x0a\xa1\x0bmy_receiverCBP\x02\x00\x00\x00S(\xc0\x14\x01\xa1\x11jms.queue.example\x00S)E@BC
{noformat}

then {{libuv_recv}} does not quit even after I kill the "server" with ^C  
(which should close the socket). This happens with all C example receivers. It 
does not happen with {{examples/python/simple_recv}}, which just disconnects 
and then keeps trying to reconnect. I am not sure if the disconnect behavior is 
just missing from the C clients (in that case it is not a big deal) or if it 
gets stuck somewhere deeper in proton-c (in which case it may actually impact 
someone).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to